Class: ROM::Configurable::Constructors::Default
- Inherits:
-
Struct
- Object
- Struct
- ROM::Configurable::Constructors::Default
- Defined in:
- lib/rom/support/configurable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #call(*args) ⇒ Object (also: #[])
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
141 142 143 |
# File 'lib/rom/support/configurable.rb', line 141 def name @name end |
Instance Method Details
#call(*args) ⇒ Object Also known as: []
142 143 144 145 146 |
# File 'lib/rom/support/configurable.rb', line 142 def call(*args) return if args.compact.empty? block_given? ? yield(*args) : args.first end |