summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/psych/extconf.rb4
-rw-r--r--lib/psych/tree_builder.rb16
2 files changed, 12 insertions, 8 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index 5da916b..eb0b319 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -1,5 +1,7 @@
require 'mkmf'
+# :stopdoc:
+
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
$CFLAGS << ' -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion' <<
@@ -19,3 +21,5 @@ asplode('yaml.h') unless find_header 'yaml.h'
asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'
create_makefile 'psych/psych'
+
+# :startdoc:
diff --git a/lib/psych/tree_builder.rb b/lib/psych/tree_builder.rb
index 075163e..db0a637 100644
--- a/lib/psych/tree_builder.rb
+++ b/lib/psych/tree_builder.rb
@@ -22,8 +22,8 @@ module Psych
Mapping
}.each do |node|
class_eval %{
- def start_#{node.downcase}(*args)
- n = Nodes::#{node}.new(*args)
+ def start_#{node.downcase}(anchor, tag, implicit, style)
+ n = Nodes::#{node}.new(anchor, tag, implicit, style)
@last.children << n
push n
end
@@ -34,8 +34,8 @@ module Psych
}
end
- def start_document(*args)
- n = Nodes::Document.new(*args)
+ def start_document version, tag_directives, implicit
+ n = Nodes::Document.new(version, tag_directives, implicit)
@last.children << n
push n
end
@@ -49,12 +49,12 @@ module Psych
push Nodes::Stream.new(encoding)
end
- def scalar(*args)
- @last.children << Nodes::Scalar.new(*args)
+ def scalar value, anchor, tag, plain, quoted, style
+ @last.children << Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
end
- def alias(*args)
- @last.children << Nodes::Alias.new(*args)
+ def alias anchor
+ @last.children << Nodes::Alias.new(anchor)
end
private