class TextExtractor::Directives::Rest

skip to end of line

Public Instance Methods

call() click to toggle source
# File lib/text_extractor/directives/classes.rb, line 91
def call
  state.current = if state.newline?
                    [state.current.chomp, '[^\\n]*\n']
                  else
                    [state.current, '[^\\n]*']
                  end
end