From 3d2e701396d014fa1aff49e3441ab1cf0ab63fd7 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 2 Nov 2010 21:25:27 +0000 Subject: * ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor methods to subclass that actually uses them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/psych/lib/psych/visitors/visitor.rb | 9 --------- ext/psych/lib/psych/visitors/yaml_tree.rb | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'ext/psych') 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 # => #