Class: String

Inherits:
Object show all
Defined in:
lib/tagen/core/string/pyformat.rb,
lib/tagen/core/string.rb

Overview

class PyFormat

Constant Summary collapse

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.digitsString

“0123456789”

Returns:



14
# File 'lib/tagen/core/string.rb', line 14

def digits; @@digits end

.hexdigitsString

“01234567890ABCDEF”

Returns:



19
# File 'lib/tagen/core/string.rb', line 19

def hexdigits; @@hexdigits end

.lettersString

“ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz”

Returns:



39
# File 'lib/tagen/core/string.rb', line 39

def letters; @@letters end

.lowercaseString

“abcdefghijklmnopqrstuvwxyz”

Returns:



34
# File 'lib/tagen/core/string.rb', line 34

def lowercase; @@lowercase end

.octdigitsString

“01234567”

Returns:



24
# File 'lib/tagen/core/string.rb', line 24

def octdigits; @@octdigits end

.uppercaseString

“ABCDEFGHIJKLMNOPQRSTUVWXYZ”

Returns:



29
# File 'lib/tagen/core/string.rb', line 29

def uppercase; @@uppercase end

Instance Method Details

#format(*args) ⇒ Object



333
# File 'lib/tagen/core/string/pyformat.rb', line 333

def format(*args) PyFormat.new(self).format *args end