Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
def method_missing method, *args
  "#{method.to_s} #{args.map {|x| x.to_s }}"
end

def echo_block
  puts yield
end

echo_block do
  my string here
end
# >> my string here