method
visit_Range
v1_9_3_125 -
Show latest stable
- Class:
Psych::Visitors::YAMLTree
visit_Range(o)public
No documentation available.
# File ext/psych/lib/psych/visitors/yaml_tree.rb, line 266
def visit_Range 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