Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/libisi.rb,
lib/libisi/bridge/python.rb
Instance Method Summary collapse
Instance Method Details
#end_with?(xx) ⇒ Boolean
24 25 26 |
# File 'lib/libisi/bridge/python.rb', line 24 def end_with?(xx) self[(-xx.length)..-1] == xx end |
#starts_with?(other) ⇒ Boolean
943 944 945 |
# File 'lib/libisi.rb', line 943 def starts_with?(other) self[0..(other.length-1)] == other end |