Class: ROM::Configurable::Constructors::Default

Inherits:
Struct
  • Object
show all
Defined in:
lib/rom/support/configurable.rb

Direct Known Subclasses

Inherit, Join

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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