luc-lib/lib/lucie/command_line_slicer.rb
def to_a
        each_char do |char|
          if boundary? char
            save_chunk
          elsif in_quoatation? char
            toggle_quotation_state
          elsif neutral? char
            neutral :on
          else
            neutral :off
            append char
          end
        end
        save_chunk
      end
# Returns the words of the input in an array.
#
Returns the words of the input in an array.
Returns the words of the input in an array .
def to_a
        each_char do |char|
          if boundary? char
            save_chunk
          elsif in_quoatation? char
            toggle_quotation_state
          elsif neutral? char
            neutral :on
          else
            neutral :off
            append char
          end
        end
        save_chunk
      end
def to_a each_char do | char | if boundary? char save_chunk elsif in_quoatation? char toggle_quotation_state elsif neutral? char neutral :on else neutral :off append char end end save_chunk end
Returns the words of the input in an array.
Returns the words of the input in an array .