Class: AndExpr

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

Instance Method Summary collapse

Constructor Details

#initialize(e1, e2) ⇒ AndExpr

Returns a new instance of AndExpr.



209
210
211
# File 'lib/code_generator.rb', line 209

def initialize  e1, e2
  @e1, @e2 = e1, e2
end

Instance Method Details

#genObject



213
214
215
# File 'lib/code_generator.rb', line 213

def gen
  "#{@e1.gen} && #{@e2.gen}"
end