Module: Trailblazer::Context::IndifferentAccess::InstanceMethods
- Included in:
- Trailblazer::Context::IndifferentAccess
- Defined in:
- lib/trailblazer/context/indifferent_access.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(wrapped_options, mutable_options, _ctx, flow_options) ⇒ Object
15 16 17 |
# File 'lib/trailblazer/context/indifferent_access.rb', line 15 def self.build(, , (_ctx, ), **) new(, , ) end |
Instance Method Details
#[](name) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/trailblazer/context/indifferent_access.rb', line 7 def [](name) # TODO: well... @mutable_options.key?(name.to_sym) and return @mutable_options[name.to_sym] @mutable_options.key?(name.to_s) and return @mutable_options[name.to_s] @wrapped_options.key?(name.to_sym) and return @wrapped_options[name.to_sym] @wrapped_options[name.to_s] end |