Class: Kanrisuru::Core::Stream::Parser::Sed

Inherits:
Object
  • Object
show all
Defined in:
lib/kanrisuru/core/stream/parsers/sed.rb

Class Method Summary collapse

Class Method Details

.parse(command, opts) ⇒ Object



8
9
10
11
12
# File 'lib/kanrisuru/core/stream/parsers/sed.rb', line 8

def self.parse(command, opts)
  return if Kanrisuru::Util.present?(opts[:new_file])

  command.to_a.join("\n")
end