Class: MessagePack::IDL::AST::IntLiteral

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ IntLiteral

Returns a new instance of IntLiteral.



326
327
328
# File 'lib/msgpack/idl/ast.rb', line 326

def initialize(value)
	@value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



329
330
331
# File 'lib/msgpack/idl/ast.rb', line 329

def value
  @value
end

Instance Method Details

#textObject



331
332
333
# File 'lib/msgpack/idl/ast.rb', line 331

def text
	"#{@value}"
end