class PrefixWith::Prefixer

Public Class Methods

output( stdin: '', prefix: '' ) click to toggle source
# File lib/prefix_with.rb, line 5
def self.output( stdin: '', prefix: '' )
  stdin.collect do |line|
    "#{prefix.first} '#{line.chomp}'"
  end
end