Method: Aef::Linebreak::EncodeCommand#execute
- Defined in:
- lib/aef/linebreak/commands/encode.rb
#execute ⇒ Object
Main program
66 67 68 69 70 71 72 |
# File 'lib/aef/linebreak/commands/encode.rb', line 66 def execute @user_choices[:input].each_line do |line| @user_choices[:output] << Aef::Linebreak.encode(line, @user_choices[:system].to_sym) end [:input, :output].each {|stream| @user_choices[stream].close } end |