Class: Glaemscribe::API::IfTree::CodeLine

Inherits:
Object
  • Object
show all
Defined in:
lib/api/if_tree.rb

Overview

A line of code

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression, line) ⇒ CodeLine

Returns a new instance of CodeLine.



49
50
51
52
# File 'lib/api/if_tree.rb', line 49

def initialize(expression, line)
  @expression   = expression
  @line         = line
end

Instance Attribute Details

#expressionObject

Returns the value of attribute expression.



48
49
50
# File 'lib/api/if_tree.rb', line 48

def expression
  @expression
end

#lineObject

Returns the value of attribute line.



48
49
50
# File 'lib/api/if_tree.rb', line 48

def line
  @line
end