class Helium::Console::Formatters::Indent
Public Class Methods
new(indent)
click to toggle source
# File lib/helium/console/formatters/indent.rb, line 7 def initialize(indent) @indent = indent end
Public Instance Methods
call(string)
click to toggle source
# File lib/helium/console/formatters/indent.rb, line 11 def call(string) string.lines.map { |line| ' ' * @indent + line }.join end