J
John Lam
------=_Part_39612_19483744.1133795851458
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I'd really like to be able to inject the 'include Bob' statement in the
create method of Bob:
module Bob
def method_missing(name, *params)
puts "missing: #{name}"
end
def self.create(name)
yield if block_given?
puts name
end
end
Bob::create('hi') do
include Bob
ldstr
ldc_i4_0
end
Is there a way that I can avoid include Bob in my block?
Thanks
-John
http://www.iunknown.com
------=_Part_39612_19483744.1133795851458--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I'd really like to be able to inject the 'include Bob' statement in the
create method of Bob:
module Bob
def method_missing(name, *params)
puts "missing: #{name}"
end
def self.create(name)
yield if block_given?
puts name
end
end
Bob::create('hi') do
include Bob
ldstr
ldc_i4_0
end
Is there a way that I can avoid include Bob in my block?
Thanks
-John
http://www.iunknown.com
------=_Part_39612_19483744.1133795851458--