Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/socialcastr/sax/active_resource.rb
Instance Method Summary collapse
Instance Method Details
#all_spaces? ⇒ Boolean
6 7 8 |
# File 'lib/socialcastr/sax/active_resource.rb', line 6 def all_spaces? self.gsub(/^[\s\n\t]*$/m, '').empty? end |
#contains_dot? ⇒ Boolean
2 3 4 |
# File 'lib/socialcastr/sax/active_resource.rb', line 2 def contains_dot? self =~ /\./ end |