match_point 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/match_point/version.rb +1 -1
- data/lib/match_point/xml_instance.rb +4 -1
- data/spec/match_point_spec.rb +1 -0
- metadata +1 -1
data/lib/match_point/version.rb
CHANGED
@@ -71,7 +71,10 @@ module MatchPoint
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def self.add_attr_writer_for node_in_template
|
74
|
-
define_method (node_in_template.text).concat('=').to_sym,
|
74
|
+
define_method (node_in_template.text).concat('=').to_sym, Proc.new { | new_value |
|
75
|
+
specify_value new_value, node_in_template.path
|
76
|
+
self.class.add_attr_reader_for node_in_template, new_value
|
77
|
+
}
|
75
78
|
end
|
76
79
|
|
77
80
|
end
|
data/spec/match_point_spec.rb
CHANGED