class String

Public Instance Methods

initial() click to toggle source
# File lib/extensions/string.rb, line 10
def initial
  slice 0, 1
end
initial_is_lower?() click to toggle source
# File lib/extensions/string.rb, line 6
def initial_is_lower?
  initial.lower?
end
lower?() click to toggle source
# File lib/extensions/string.rb, line 14
def lower?
  self == downcase
end
parse_as_json() click to toggle source
# File lib/extensions/string.rb, line 2
def parse_as_json
  JSON.parse(self, symbolize_names: true)
end