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
129 130 131 |
# File 'lib/rom/support/configurable.rb', line 129 def name @name end |
Instance Method Details
#call(*args) ⇒ Object Also known as: []
130 131 132 133 134 |
# File 'lib/rom/support/configurable.rb', line 130 def call(*args) return if args.compact.empty? block_given? ? yield(*args) : args.first end |