assert_equal 'ok', %q{
module M
class A
class << self
attr_accessor :at
def workflow_rule
yield self
end
def eval_str(str)
eval(str)
begin
M::A.eval_str(<<-END)
workflow_rule do |r|
r.at 1
END
rescue ArgumentError => e
print "ok"
}, '[ruby-core:14641]'
assert_equal %{ok}, %{
attr :m
A.new.m(3)
}, '[ruby-core:15120]'