module RethinkDB::Utils
Public Instance Methods
get_mname(i = 0)
click to toggle source
# File lib/rethinkdb.rb, line 18 def get_mname(i = 0) caller(i, 1)[0] =~ /`(.*?)'/; $1 end
unbound_if(x, name = nil)
click to toggle source
# File lib/rethinkdb.rb, line 21 def unbound_if (x, name = nil) if x name = get_mname(2) if not name raise NoMethodError, "undefined method `#{name}'" end end