Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/socialcastr/sax/active_resource.rb

Instance Method Summary collapse

Instance Method Details

#all_spaces?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


2
3
4
# File 'lib/socialcastr/sax/active_resource.rb', line 2

def contains_dot?
   self =~ /\./
end