Class: ROM::Processor::Composer::Factory Private
- Inherits:
-
Object
- Object
- ROM::Processor::Composer::Factory
- Defined in:
- lib/rom/processor/composer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #default ⇒ Object readonly private
- #fns ⇒ Object readonly private
Instance Method Summary collapse
- #<<(other) ⇒ Object private
-
#initialize(default = nil) ⇒ Factory
constructor
private
A new instance of Factory.
- #to_fn ⇒ Object private
Constructor Details
#initialize(default = nil) ⇒ Factory
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Factory.
12 13 14 15 |
# File 'lib/rom/processor/composer.rb', line 12 def initialize(default = nil) @fns = [] @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/rom/processor/composer.rb', line 9 def default @default end |
#fns ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/rom/processor/composer.rb', line 9 def fns @fns end |
Instance Method Details
#<<(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 21 |
# File 'lib/rom/processor/composer.rb', line 18 def <<(other) fns.concat(Array(other).compact) self end |
#to_fn ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/rom/processor/composer.rb', line 24 def to_fn fns.reduce(:+) || default end |