Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ext/string.rb
Instance Method Summary collapse
Instance Method Details
#strip_http ⇒ Object
2 3 4 |
# File 'lib/ext/string.rb', line 2 def strip_http self.gsub(/^http\:\/\//,'').gsub(/\/$/,'') end |