class String

Public Instance Methods

truncate(max) click to toggle source
# File lib/leeloo/command.rb, line 5
def truncate(max)
  length > max ? self[0...max] : self
end