Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/checker/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#classify ⇒ Object
36 37 38 |
# File 'lib/checker/core_ext.rb', line 36 def classify CoreExt.classify(self) end |
#constantize ⇒ Object
32 33 34 |
# File 'lib/checker/core_ext.rb', line 32 def constantize CoreExt.constantize(self) end |
#ends_with?(patt) ⇒ Boolean
44 45 46 47 |
# File 'lib/checker/core_ext.rb', line 44 def ends_with?(patt) patt = Regexp.new(Regexp.escape(patt) + "$") self.match patt end |
#underscore ⇒ Object
40 41 42 |
# File 'lib/checker/core_ext.rb', line 40 def underscore CoreExt.underscore(self) end |