Sha256: 18eb768cb02cc74414a59001d7d5d869931fefd7d4a77494c79d4f6ea9bd1ae7

Contents?: true

Size: 836 Bytes

Versions: 6

Compression:

Stored size: 836 Bytes

Contents

class String 
	@@didits = "0123456789" 
	@@hexdigits = "01234567890ABCDEF" 
	@@octdigits = "01234567" 
	@@uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 
	@@lowercase = "abcdefghijklmnopqrstuvwxyz"
	@@letters = @@uppercase + @@lowercase 

	class << self

		# "0123456789"
		#
		# @return [String]
		def digits; @@digits end

		# "01234567890ABCDEF" 
		#
		# @return [String]
		def hexdigits; @@hexdigits end

		# "01234567" 
		#
		# @return [String]
		def octdigits; @@octdigits end

		# "ABCDEFGHIJKLMNOPQRSTUVWXYZ" 
		#
		# @return [String]
		def uppercase; @@uppercase end

		# "abcdefghijklmnopqrstuvwxyz"
		#
		# @return [String]
		def lowercase; @@lowercase end

		# "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
		#
		# @return [String]
		def letters; @@letters end
	end
end # class String

require_relative "string/pyformat"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tagen-0.2.4 lib/tagen/core/string.rb
tagen-0.2.3 lib/tagen/core/string.rb
tagen-0.2.1 lib/tagen/core/string.rb
tagen-0.2.0 lib/tagen/core/string.rb
tagen-0.1.1 lib/tagen/core/string.rb
tagen-0.1.0 lib/tagen/core/string.rb