Class: MessagePack::IDL::AST::InheritName
- Defined in:
- lib/msgpack/idl/ast.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ InheritName
constructor
A new instance of InheritName.
- #text ⇒ Object
Methods inherited from Element
Constructor Details
#initialize(name) ⇒ InheritName
Returns a new instance of InheritName.
182 183 184 |
# File 'lib/msgpack/idl/ast.rb', line 182 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
185 186 187 |
# File 'lib/msgpack/idl/ast.rb', line 185 def name @name end |
Instance Method Details
#text ⇒ Object
187 188 189 |
# File 'lib/msgpack/idl/ast.rb', line 187 def text "inherit #{@name}" end |