Error #
Literal Specific Methods #
Generic Literal Methods #
methods() #
Returns
ARRAY
Returns an array of all supported methods names.
π > "test".methods()
=> [count, downcase, find, reverse!, split, lines, upcase!, strip!, downcase!, size, plz_i, replace, reverse, strip, upcase]
to_json() #
Returns
STRING|ERROR
Returns the object as json notation.
π > a = {"test": 1234}
=> {"test": 1234}
π > a.to_json()
=> "{"test":1234}"
type() #
Returns
STRING
Returns the type of the object.
π > "test".type()
=> "STRING"
wat() #
Returns
STRING
Returns the supported methods with usage information.
π > true.wat()
=> BOOLEAN supports the following methods:
plz_s()