Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/dsl/python/types/string.rb
Instance Method Summary collapse
- #__ ⇒ Object
- #format(arg) ⇒ Object
- #join(list) ⇒ Object
- #lower ⇒ Object
- #replace(a, b) ⇒ Object
- #title ⇒ Object
- #upper ⇒ Object
Instance Method Details
#__ ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dsl/python/types/string.rb', line 12 def __ names = %w[ str.__add__( str.__getattribute__( str.__le__( str.__repr__() str.__class__( str.__getitem__( str.__len__() str.__rmod__( str.__contains__( str.__getnewargs__() str.__lt__( str.__rmul__( str.__delattr__( str.__getstate__() str.__mod__( str.__setattr__( str.__dir__() str.__gt__( str.__mul__( str.__sizeof__() str.__doc__ str.__hash__() str.__ne__( str.__str__() str.__eq__( str.__init__( str.__new__( str.__subclasshook__( str.__format__( str.__init_subclass__() str.__reduce__() str.__ge__( str.__iter__() str.__reduce_ex__( ] Dsl::Python.puts_in_columns(names.sort) end |
#format(arg) ⇒ Object
2 3 4 |
# File 'lib/dsl/python/types/string.rb', line 2 def format(arg) self % arg end |
#join(list) ⇒ Object
6 |
# File 'lib/dsl/python/types/string.rb', line 6 def join(list) = list.join(self) |
#lower ⇒ Object
7 |
# File 'lib/dsl/python/types/string.rb', line 7 def lower = downcase |
#replace(a, b) ⇒ Object
8 |
# File 'lib/dsl/python/types/string.rb', line 8 def replace(a, b) = tr(a, b) |
#title ⇒ Object
9 |
# File 'lib/dsl/python/types/string.rb', line 9 def title = capitalize |
#upper ⇒ Object
10 |
# File 'lib/dsl/python/types/string.rb', line 10 def upper = upcase |