Sha256: dd9c950b791a7f2be5bc612cf92925cf6d26c0169b029a81c9746416a3d4d0e9

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

class String
	# Return first character's ascii code.
  #
	# @example
  #
	#   'a'.ascii     -> 97
  #
	def ascii() 
    bytes.first 
  end
end

require "active_support/core_ext/string"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagen-2.0.2 lib/tagen/core/string.rb
tagen-2.0.1 lib/tagen/core/string.rb
tagen-2.0.0 lib/tagen/core/string.rb