Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/nitro_pay/string.rb
Instance Method Summary collapse
Instance Method Details
#equals?(str) ⇒ Boolean
14 15 16 |
# File 'lib/nitro_pay/string.rb', line 14 def equals?(str) self == str end |
#float? ⇒ Boolean
10 11 12 |
# File 'lib/nitro_pay/string.rb', line 10 def float? self.to_f.to_s == self end |
#integer? ⇒ Boolean
6 7 8 |
# File 'lib/nitro_pay/string.rb', line 6 def integer? self.to_i.to_s == self end |
#remove(pattern) ⇒ Object
2 3 4 |
# File 'lib/nitro_pay/string.rb', line 2 def remove(pattern) gsub pattern, '' end |