module Resource::WithKey
Public Class Methods
Source
# File lib/rbbt/resource/with_key.rb, line 3 def self.extended(base) class << base attr_accessor :klass, :key end end
Public Instance Methods
Source
# File lib/rbbt/resource/with_key.rb, line 10 def method_missing(name, *args) return old_method_missing(name, *args) if name.to_s =~ /^to_/ if key klass.send(name, key, *args) else klass.send(name, *args) end end
Also aliased as: old_method_missing