instance method
Psych::Visitors::YAMLTree#visit_Range
visit_Range(o)
ext/psych/lib/psych/visitors/yaml_tree.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/psych/lib/psych/visitors/yaml_tree.rb, line 354
def visit_Range o
register o, @emitter.start_mapping(nil, '!ruby/range', false, Nodes::Mapping::BLOCK)
['begin', o.begin, 'end', o.end, 'excl', o.exclude_end?].each do |m|
accept m
end
@emitter.end_mapping
end
No documentation available
See also
#visit_Psych_Set
#visit_Rational
#visit_Psych_Omap
#visit_Regexp
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0