Class: Opencdd::Cddal::AST::Set

Inherits:
Struct
  • Object
show all
Defined in:
lib/opencdd/cddal/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



122
123
124
# File 'lib/opencdd/cddal/ast.rb', line 122

def elements
  @elements
end

Instance Method Details

#identifiersObject



123
124
125
# File 'lib/opencdd/cddal/ast.rb', line 123

def identifiers
  elements
end

#to_cddalObject



127
128
129
# File 'lib/opencdd/cddal/ast.rb', line 127

def to_cddal
  "{ #{elements.map(&:to_cddal).join(', ')} }"
end