Module: ActionService::Container::InstanceMethods
- Defined in:
- lib/action_service/container.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#service_object(service_name) ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/action_service/container.rb', line 83 def service_object(service_name) info = self.class.services[service_name.to_sym] unless info raise(ContainerError, "no such service '#{service_name}'") end service = info[:block] service ? instance_eval(&service) : info[:object] end |