summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-11-17 19:47:29 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2009-11-17 19:47:29 -0800
commitccc1107595545a7947080d919529102d3e8c6dfe (patch)
treed284d0effaa7428fd2ea2c1b76315ff2734c56a2 /lib
parentbffb39d682675904158f43bfafebace0c50ed879 (diff)
downloadpsych-ccc1107595545a7947080d919529102d3e8c6dfe.zip
renaming YASTBuilder -> YAMLTree
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb2
-rw-r--r--lib/psych/visitors.rb2
-rw-r--r--lib/psych/visitors/yaml_tree.rb (renamed from lib/psych/visitors/yast_builder.rb)2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index df28ba0..74da20a 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -43,7 +43,7 @@ module Psych
###
# Dump object +o+ to a YAML string
def self.dump o, options = {}
- visitor = Psych::Visitors::YASTBuilder.new options
+ visitor = Psych::Visitors::YAMLTree.new options
visitor.accept o
visitor.tree.to_yaml
end
diff --git a/lib/psych/visitors.rb b/lib/psych/visitors.rb
index 0708e94..d00dcfd 100644
--- a/lib/psych/visitors.rb
+++ b/lib/psych/visitors.rb
@@ -1,4 +1,4 @@
require 'psych/visitors/visitor'
require 'psych/visitors/to_ruby'
require 'psych/visitors/emitter'
-require 'psych/visitors/yast_builder'
+require 'psych/visitors/yaml_tree'
diff --git a/lib/psych/visitors/yast_builder.rb b/lib/psych/visitors/yaml_tree.rb
index 4eb21fd..0f0e3ba 100644
--- a/lib/psych/visitors/yast_builder.rb
+++ b/lib/psych/visitors/yaml_tree.rb
@@ -1,6 +1,6 @@
module Psych
module Visitors
- class YASTBuilder < Psych::Visitors::Visitor
+ class YAMLTree < Psych::Visitors::Visitor
attr_reader :tree
def initialize options = {}