module Riffer::Rig::Support::TypedValue
@rbs generic T @rbs module-self Riffer::Rig::Support::_TypedValue
Public Instance Methods
() → Hash[Symbol, untyped]
Source
# File lib/riffer/rig/support/typed_value.rb, line 14 def to_h { type: type }.merge(self.class.attributes.to_h { |name| [name, public_send(name)] }) end
@rbs return: Hash[Symbol, untyped]
() → T
Source
# File lib/riffer/rig/support/typed_value.rb, line 9 def type self.class.type end
@rbs return: T