Class: Yalphabetize::Alphabetizer

Inherits:
Object
  • Object
show all
Defined in:
lib/yalphabetize/alphabetizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(stream_node) ⇒ Alphabetizer

Returns a new instance of Alphabetizer.



5
6
7
# File 'lib/yalphabetize/alphabetizer.rb', line 5

def initialize(stream_node)
  @stream_node = stream_node
end

Instance Method Details

#callObject



9
10
11
12
# File 'lib/yalphabetize/alphabetizer.rb', line 9

def call
  alphabetize(stream_node)
  stream_node
end