提交 c469e465 编写于 作者: N Nicholas Seckar

it's me, john wayne

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 2399a223
...@@ -138,12 +138,6 @@ def write_generation ...@@ -138,12 +138,6 @@ def write_generation
# Nest the body inside of a def block, and then compile it. # Nest the body inside of a def block, and then compile it.
raw_method = method_decl = "def generate_raw(#{args})\npath = begin\n#{body}\nend\n[path, hash]\nend" raw_method = method_decl = "def generate_raw(#{args})\npath = begin\n#{body}\nend\n[path, hash]\nend"
# puts "\n======================"
# puts
# p self
# puts
# puts method_decl
# puts
instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})"
# expire_on.keys == recall.keys; in other words, the keys in the expire_on hash # expire_on.keys == recall.keys; in other words, the keys in the expire_on hash
...@@ -193,12 +187,6 @@ def write_recognition ...@@ -193,12 +187,6 @@ def write_recognition
# Build the method declaration and compile it # Build the method declaration and compile it
method_decl = "def recognize(path, env={})\n#{body}\nend" method_decl = "def recognize(path, env={})\n#{body}\nend"
# puts "\n======================"
# puts
# p self
# puts
# puts method_decl
# puts
instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})" instance_eval method_decl, "generated code (#{__FILE__}:#{__LINE__})"
method_decl method_decl
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册