Module: Arithmetic::Additive0

Defined in:
lib/simplesem/arithmetic.rb

Instance Method Summary collapse

Instance Method Details

#operand_1Object



223
224
225
# File 'lib/simplesem/arithmetic.rb', line 223

def operand_1
  elements[0]
end

#operand_2Object



239
240
241
# File 'lib/simplesem/arithmetic.rb', line 239

def operand_2
  elements[4]
end

#operatorObject



231
232
233
# File 'lib/simplesem/arithmetic.rb', line 231

def operator
  elements[2]
end

#spaceObject



227
228
229
# File 'lib/simplesem/arithmetic.rb', line 227

def space
  elements[1]
end