Class: MessagePack::IDL::AST::InheritName

Inherits:
Inherit show all
Defined in:
lib/msgpack/idl/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Element

#summary

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

#nameObject (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

#textObject



187
188
189
# File 'lib/msgpack/idl/ast.rb', line 187

def text
	"inherit #{@name}"
end