Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/skype/sharefunctions.rb,
lib/skype/object.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#_flagObject



258
259
260
261
262
263
264
265
266
267
# File 'lib/skype/object.rb', line 258

def _flag
  case self
  when /^(TRUE)|(ON)$/i
    return true
  when /^(FALSE)|(OFF)$/i
    return false
  else
    self
  end
end

#_intObject



269
270
271
# File 'lib/skype/object.rb', line 269

def _int
  self.empty? ? nil : self.to_i
end

#_strObject



273
274
275
# File 'lib/skype/object.rb', line 273

def _str
  self
end