Class: Johnson::Nodes::ForIn

Inherits:
Node
  • Object
show all
Defined in:
lib/johnson/nodes/for_in.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line, #value

Instance Method Summary collapse

Methods inherited from Node

#each, #to_dot, #to_ecma, #to_s, #to_sexp

Methods included from Visitable

#accept

Constructor Details

#initialize(line, column, in_cond, body) ⇒ ForIn

Returns a new instance of ForIn.



6
7
8
9
# File 'lib/johnson/nodes/for_in.rb', line 6

def initialize(line, column, in_cond, body)
  super(line, column, body)
  @in_cond = in_cond
end

Instance Attribute Details

#in_condObject

Returns the value of attribute in_cond.



5
6
7
# File 'lib/johnson/nodes/for_in.rb', line 5

def in_cond
  @in_cond
end