Class: MessagePack::IDL::AST::BoolLiteral

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

Direct Known Subclasses

FalseLiteral, TrueLiteral

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ BoolLiteral

Returns a new instance of BoolLiteral.



354
355
356
# File 'lib/msgpack/idl/ast.rb', line 354

def initialize(value)
	@value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



357
358
359
# File 'lib/msgpack/idl/ast.rb', line 357

def value
  @value
end

Instance Method Details

#textObject



359
360
361
# File 'lib/msgpack/idl/ast.rb', line 359

def text
	"#{@value}"
end