class Ellipses::Client::Commands::Substitute

Public Instance Methods

call(input) click to toggle source
# File lib/ellipses/client/commands/substitute.rb, line 17
def call(input)
  input.map { |line| line.gsub param.pattern, param.replace }
end
setup() click to toggle source
# File lib/ellipses/client/commands/substitute.rb, line 11
def setup
  super

  param.replace = argv.last
end