Class: MessagePack::IDL::AST::ValueAssignedField
- Defined in:
- lib/msgpack/idl/ast.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Field
Instance Method Summary collapse
-
#initialize(id, type, modifier, name, value) ⇒ ValueAssignedField
constructor
A new instance of ValueAssignedField.
- #text ⇒ Object
Methods inherited from Element
Constructor Details
#initialize(id, type, modifier, name, value) ⇒ ValueAssignedField
Returns a new instance of ValueAssignedField.
114 115 116 117 |
# File 'lib/msgpack/idl/ast.rb', line 114 def initialize(id, type, modifier, name, value) super(id, type, modifier, name) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
118 119 120 |
# File 'lib/msgpack/idl/ast.rb', line 118 def value @value end |
Instance Method Details
#text ⇒ Object
120 121 122 |
# File 'lib/msgpack/idl/ast.rb', line 120 def text "#{super} = #{@value.text}" end |