Class: PrefixWith::Prefixer
- Inherits:
-
Object
- Object
- PrefixWith::Prefixer
- Defined in:
- lib/prefix_with.rb
Class Method Summary collapse
Class Method Details
.output(stdin: '', prefix: '') ⇒ Object
5 6 7 8 9 |
# File 'lib/prefix_with.rb', line 5 def self.output( stdin: '', prefix: '' ) stdin.collect do |line| "#{prefix.first} '#{line.chomp}'" end end |