Class: Metal::Generator::AndSet

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

Instance Method Summary collapse

Constructor Details

#initialize(exprs) ⇒ AndSet

Returns a new instance of AndSet.



247
248
249
# File 'lib/metal/generator.rb', line 247

def initialize(exprs)
	@exprs = exprs
end

Instance Method Details

#generate(ctx, source) ⇒ Object



253
254
255
256
257
# File 'lib/metal/generator.rb', line 253

def generate(ctx, source)
	@exprs.each {|expr|
		expr.generate(ctx, source)
	}
end

#preprocess(ctx) ⇒ Object



250
251
252
# File 'lib/metal/generator.rb', line 250

def preprocess(ctx)
	@exprs.each {|expr| expr.preprocess(ctx) }
end