Method: Hanami::ClassMethods#expose
- Defined in:
- lib/hanami/interactor.rb
#expose(*instance_variable_names) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Exposes local instance variables into the returning value of #call
616 617 618 619 620 |
# File 'lib/hanami/interactor.rb', line 616 def expose(*instance_variable_names) instance_variable_names.each do |name| exposures[name.to_sym] = "@#{name}" end end |