Module: InchCI::Controller

Instance Method Summary collapse

Instance Method Details

#expose(view) ⇒ Object


3
4
5
6
7
8
# File 'lib/inch_ci/controller.rb', line 3

def expose(view)
  view.exposures.each do |name|
    value = view.send(name)
    instance_variable_set("@#{name}", value)
  end
end