class String
Constants
- BLANK_RE
Public Instance Methods
blank?()
click to toggle source
# File lib/rundock/ext/object/blank.rb, line 36 def blank? self =~ BLANK_RE end
just(pad, max)
click to toggle source
# File lib/rundock/ext/string.rb, line 2 def just(pad, max) return self.ljust(max, pad) if length <= max return "#{self[0..(max - 3)]}.." if length > max end