Sha256: 11ea29be6cdbb1ce483c66fa134afecd106150d9a577e196617bd35f650e89a2

Contents?: true

Size: 214 Bytes

Versions: 65

Compression:

Stored size: 214 Bytes

Contents

class String
  def parse_as_json
    JSON.parse(self, symbolize_names: true)
  end

  def initial_is_lower?
    initial.lower?
  end

  def initial
    slice 0, 1
  end

  def lower?
    self == downcase
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
mumuki-gobstones-runner-2.19.1 lib/extensions/string.rb
mumuki-gobstones-runner-2.19.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.18.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.17.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.16.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.14.3 lib/extensions/string.rb
mumuki-gobstones-runner-2.15.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.14.2 lib/extensions/string.rb
mumuki-gobstones-runner-2.14.1 lib/extensions/string.rb
mumuki-gobstones-runner-2.14.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.13.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.12.1 lib/extensions/string.rb
mumuki-gobstones-runner-2.12.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.11.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.10.1 lib/extensions/string.rb
mumuki-gobstones-runner-2.10.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.9.1 lib/extensions/string.rb
mumuki-gobstones-runner-2.9.0 lib/extensions/string.rb
mumuki-gobstones-runner-2.8.5 lib/extensions/string.rb
mumuki-gobstones-runner-2.8.4 lib/extensions/string.rb