diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-01-15 20:43:57 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-01-15 20:43:57 -0800 |
commit | 7e67046a46ebaef74b701dd19209d3854c5ecc2b (patch) | |
tree | 8ce2e66f301cb80d8c93e42ae5e0d6b74955cbb6 | |
parent | 39f466a51d1aedd89c32eabc6ff8ee6ae41f5bed (diff) | |
download | psych-7e67046a46ebaef74b701dd19209d3854c5ecc2b.zip |
formatting
-rw-r--r-- | lib/psych/visitors/visitor.rb | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/psych/visitors/visitor.rb b/lib/psych/visitors/visitor.rb index da0bf4c..ccd8c3b 100644 --- a/lib/psych/visitors/visitor.rb +++ b/lib/psych/visitors/visitor.rb @@ -3,18 +3,12 @@ module Psych class Visitor def accept target case target - when Psych::Nodes::Scalar - visit_Psych_Nodes_Scalar target - when Psych::Nodes::Mapping - visit_Psych_Nodes_Mapping target - when Psych::Nodes::Sequence - visit_Psych_Nodes_Sequence target - when Psych::Nodes::Document - visit_Psych_Nodes_Document target - when Psych::Nodes::Stream - visit_Psych_Nodes_Stream target - when Psych::Nodes::Alias - visit_Psych_Nodes_Alias target + when Psych::Nodes::Scalar then visit_Psych_Nodes_Scalar target + when Psych::Nodes::Mapping then visit_Psych_Nodes_Mapping target + when Psych::Nodes::Sequence then visit_Psych_Nodes_Sequence target + when Psych::Nodes::Alias then visit_Psych_Nodes_Alias target + when Psych::Nodes::Document then visit_Psych_Nodes_Document target + when Psych::Nodes::Stream then visit_Psych_Nodes_Stream target else raise "Can't handle #{target}" end |