Class: Opencdd::Cddal::AST::Set
- Inherits:
-
Struct
- Object
- Struct
- Opencdd::Cddal::AST::Set
- Defined in:
- lib/opencdd/cddal/ast.rb
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
Instance Method Summary collapse
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements
122 123 124 |
# File 'lib/opencdd/cddal/ast.rb', line 122 def elements @elements end |
Instance Method Details
#identifiers ⇒ Object
123 124 125 |
# File 'lib/opencdd/cddal/ast.rb', line 123 def identifiers elements end |
#to_cddal ⇒ Object
127 128 129 |
# File 'lib/opencdd/cddal/ast.rb', line 127 def to_cddal "{ #{elements.map(&:to_cddal).join(', ')} }" end |