Method: Id#parse_op
- Defined in:
- lib/id.rb
#parse_op(line, operator) ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/id.rb', line 73 def parse_op line, operator if (operands = line.split(operator)).length > 1 return [sub(operands[0]), sub(operands[1])] else return nil end end |