class String
Public Instance Methods
remove_starting()
click to toggle source
Removes starting whitespace.
# File lib/quickpress.rb, line 14 def remove_starting dup.remove_starting! end
remove_starting!()
click to toggle source
Removes starting whitespace (destructive).
# File lib/quickpress.rb, line 19 def remove_starting! self.gsub(/^ +/, "") end