Skip to content

Commit

Permalink
OCD
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Jan 3, 2015
1 parent aa0a3a3 commit be043d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sax-machine/sax_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def create_attr(real_name, &block)
if !method_defined?("#{real_name}=")
if block_given?
define_method("#{real_name}=") do |value|
instance_variable_set("@#{real_name}", (yield value))
instance_variable_set("@#{real_name}", (yield value))
end
else
attr_writer(real_name)
Expand Down

0 comments on commit be043d2

Please sign in to comment.