Class: Vertigo::Sensitivity

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(elements = []) ⇒ Sensitivity

Returns a new instance of Sensitivity.



141
142
143
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 141

def initialize elements=[]
  @elements=elements
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



140
141
142
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 140

def elements
  @elements
end

Instance Method Details

#<<(e) ⇒ Object



46
47
48
# File 'lib/vertigo/ast.rb', line 46

def << e
  @elements << e
end