Sha256: 15b3aa9026ce91327226dcd301ec2ecb5327a3e82fe001b92faf65f1dcb59dd7
Contents?: true
Size: 426 Bytes
Versions: 8
Compression:
Stored size: 426 Bytes
Contents
module RailsAdminSettings # we are inheriting from BasicObject so we don't get a bunch of methods from # Kernel or Object class Fallback < BasicObject def initialize(ns, fb) @ns = ns @fb = fb end def inspect "#<RailsAdminSettings::Fallback ns: #{@ns.inspect}, fb: #{@fb.inspect}>" end def method_missing(*args) @ns.fallback = @fb @ns.__send__(*args) end end end
Version data entries
8 entries across 8 versions & 1 rubygems