Class: BiteScript::ASM::EnumValue

Inherits:
Object
  • Object
show all
Defined in:
lib/bitescript/mirror.rb,
lib/bitescript/asm3/mirror.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(declaring_type, name) ⇒ EnumValue

Returns a new instance of EnumValue.



7
8
9
10
# File 'lib/bitescript/mirror.rb', line 7

def initialize(declaring_type, name)
  @declaring_type = declaring_type
  @name = name
end

Instance Attribute Details

#declaring_typeObject (readonly)

Returns the value of attribute declaring_type.



5
6
7
# File 'lib/bitescript/mirror.rb', line 5

def declaring_type
  @declaring_type
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/bitescript/mirror.rb', line 5

def name
  @name
end