class Mobj::Forwarder

Attributes

handler[RW]
root[RW]

Public Class Methods

new(root = nil, &handler) click to toggle source
# File lib/mobj.rb, line 10
def initialize(root = nil, &handler) @root, @handler = root, handler end

Public Instance Methods

inspect() click to toggle source
# File lib/mobj.rb, line 13
def inspect() { class:self.class, root:root, handler:handler}.inspect end
method_missing(name, *args, &block) click to toggle source
# File lib/mobj.rb, line 11
def method_missing(name, *args, &block) handler.call(name, *args, &block) end
to_ary() click to toggle source
# File lib/mobj.rb, line 12
def to_ary() [root, handler] end