Commit 5ec43b84 by ivan Lan

Fix the last commit

parent bb38a555
...@@ -37,7 +37,7 @@ module Shotengai ...@@ -37,7 +37,7 @@ module Shotengai
def template_with_value key, value: "#{key}_value", template: "#{key}_template" def template_with_value key, value: "#{key}_value", template: "#{key}_template"
class_eval %Q{ class_eval %Q{
def #{key} def #{key}
val = #{value}.is_a?(Harray) ? #{value}.decode : value val = #{value}.is_a?(Harray) ? #{value}.decode : #{value}
{ {
template: Shotengai::Harray.encode(#{template}).keys, template: Shotengai::Harray.encode(#{template}).keys,
value: val, value: val,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment