class Array
Public Instance Methods
indent(offset)
click to toggle source
# File lib/bashly/extensions/array.rb, line 2 def indent(offset) return self unless offset > 0 indentation = " " * offset map { |line| "#{indentation}#{line}" } end