Class: Chelsy::EnumMember
Instance Attribute Summary collapse
-
#init ⇒ Object
readonly
Returns the value of attribute init.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(name, init = nil, **rest) ⇒ EnumMember
constructor
A new instance of EnumMember.
Constructor Details
#initialize(name, init = nil, **rest) ⇒ EnumMember
Returns a new instance of EnumMember.
173 174 175 176 177 |
# File 'lib/chelsy/ast.rb', line 173 def initialize(name, init=nil, **rest) @name = name.to_sym @init = init super **rest end |
Instance Attribute Details
#init ⇒ Object (readonly)
Returns the value of attribute init.
171 172 173 |
# File 'lib/chelsy/ast.rb', line 171 def init @init end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
171 172 173 |
# File 'lib/chelsy/ast.rb', line 171 def name @name end |