Class: Kumi::Syntax::TraitDeclaration
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Syntax::TraitDeclaration
- Includes:
- Node
- Defined in:
- lib/kumi/syntax/trait_declaration.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes included from Node
Instance Method Summary collapse
Methods included from Node
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression
5 6 7 |
# File 'lib/kumi/syntax/trait_declaration.rb', line 5 def expression @expression end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/kumi/syntax/trait_declaration.rb', line 5 def name @name end |
Instance Method Details
#children ⇒ Object
8 |
# File 'lib/kumi/syntax/trait_declaration.rb', line 8 def children = [expression] |
#kind ⇒ Object
9 |
# File 'lib/kumi/syntax/trait_declaration.rb', line 9 def kind = :trait |