class Stitcher::Stitch::Definer

Public Class Methods

new(obj) click to toggle source
# File lib/stitcher/stitch.rb, line 9
def initialize obj
        @obj = obj
end

Public Instance Methods

method_missing(name, sig, &block) click to toggle source
# File lib/stitcher/stitch.rb, line 13
def method_missing name, sig, &block
        DefineMethod.instance_method(:stitcher_define_method).bind(@obj).(name, sig, &block)
end