Class: String

Inherits:
Object show all
Defined in:
lib/savon_helper.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/savon_helper.rb', line 17

def blank?
  empty?()
end

#strip_commentsObject



21
22
23
# File 'lib/savon_helper.rb', line 21

def strip_comments
  self.match(/^([^#]*)(#.*$)?/).to_a[1]
end