Class: MessagePack::IDL::AST::ConstLiteral

Inherits:
Literal
  • Object
show all
Defined in:
lib/msgpack/idl/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ConstLiteral

Returns a new instance of ConstLiteral.



303
304
305
# File 'lib/msgpack/idl/ast.rb', line 303

def initialize(name)
	@name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



306
307
308
# File 'lib/msgpack/idl/ast.rb', line 306

def name
  @name
end

Instance Method Details

#textObject



308
309
310
# File 'lib/msgpack/idl/ast.rb', line 308

def text
	"#{@name}"
end