![]() |
От: | DemAS | http://demas.me |
Дата: | 10.09.09 09:29 | ||
Оценка: |
class Some
def do(name, &block)
instance_eval(&block) if block
end
def some1(v)
puts "here is some1"
end
def some2(v)
puts "here is some2"
end
end
s = Some.new()
s.do :header do
some1 :one
some2 :two
end