Class: Dry::Data::DSL
- Inherits:
-
Object
- Object
- Dry::Data::DSL
- Defined in:
- lib/dry/data/dsl.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(container) ⇒ DSL
constructor
A new instance of DSL.
Constructor Details
#initialize(container) ⇒ DSL
Returns a new instance of DSL.
6 7 8 |
# File 'lib/dry/data/dsl.rb', line 6 def initialize(container) @container = container end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
4 5 6 |
# File 'lib/dry/data/dsl.rb', line 4 def container @container end |
Instance Method Details
#[](name) ⇒ Object
10 11 12 |
# File 'lib/dry/data/dsl.rb', line 10 def [](name) container[name] end |