Class: Yalphabetize::Alphabetizer
- Inherits:
-
Object
- Object
- Yalphabetize::Alphabetizer
- Defined in:
- lib/yalphabetize/alphabetizer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(stream_node, order_checker_class:) ⇒ Alphabetizer
constructor
A new instance of Alphabetizer.
Constructor Details
#initialize(stream_node, order_checker_class:) ⇒ Alphabetizer
Returns a new instance of Alphabetizer.
5 6 7 8 |
# File 'lib/yalphabetize/alphabetizer.rb', line 5 def initialize(stream_node, order_checker_class:) @stream_node = stream_node @order_checker_class = order_checker_class end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/yalphabetize/alphabetizer.rb', line 10 def call transform(stream_node) alphabetize(stream_node) stream_node end |