class String
Public Instance Methods
numeric?()
click to toggle source
# File lib/botemon/string.rb, line 21 def numeric? self.to_i.to_s == self || self.to_f.to_s == self end
oper?(bot)
click to toggle source
# File lib/botemon/string.rb, line 25 def oper?(bot) bot.channels.each { |c| return true if c.ops.include? self } false end