diff --git a/ChangeLog b/ChangeLog index f3848f2c8a..f958addaa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 2 22:50:25 2010 Aaron Patterson + + * ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor + methods to subclass that actually uses them. + Tue Nov 2 22:47:08 2010 Aaron Patterson * ext/psych/lib/psych/visitors/visitor.rb (accept): switch to diff --git a/ext/psych/lib/psych/visitors/visitor.rb b/ext/psych/lib/psych/visitors/visitor.rb index 0e33128f01..4d7772f428 100644 --- a/ext/psych/lib/psych/visitors/visitor.rb +++ b/ext/psych/lib/psych/visitors/visitor.rb @@ -1,15 +1,6 @@ module Psych module Visitors class Visitor - attr_reader :started, :finished - alias :finished? :finished - alias :started? :started - - def initialize - @started = false - @finished = false - end - def accept target visit target end diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index 6df1151ad7..38a42fcaff 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -8,8 +8,14 @@ module Psych # builder.tree # => #