Class: Chelsy::Type::Enum
- Defined in:
- lib/chelsy/ast.rb
Instance Attribute Summary collapse
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Attributes inherited from Taggable
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(tag, members = nil, **rest) ⇒ Enum
constructor
A new instance of Enum.
Methods inherited from Base
#const?, #qualified?, #volatile?
Constructor Details
#initialize(tag, members = nil, **rest) ⇒ Enum
Returns a new instance of Enum.
473 474 475 476 |
# File 'lib/chelsy/ast.rb', line 473 def initialize(tag, members=nil, **rest) @members = EnumMemberList.new(members) if members super tag, **rest end |
Instance Attribute Details
#members ⇒ Object (readonly)
Returns the value of attribute members.
471 472 473 |
# File 'lib/chelsy/ast.rb', line 471 def members @members end |