Generated by trace_location at 2019-06-04 23:08:49 +0900
activerecord-5.2.3/lib/active_record/validations.rb:65
def valid?(context = nil)
context ||= default_validation_context
output = super(context)
errors.empty? && output
end
# called from (irb):2
activerecord-5.2.3/lib/active_record/validations.rb:75
def default_validation_context
new_record? ? :create : :update
end
# called from activerecord-5.2.3/lib/active_record/validations.rb:66
activerecord-5.2.3/lib/active_record/persistence.rb:231
def new_record?
sync_with_transaction_state
@new_record
end
# called from activerecord-5.2.3/lib/active_record/validations.rb:76
activerecord-5.2.3/lib/active_record/transactions.rb:490
def sync_with_transaction_state
update_attributes_from_transaction_state(@transaction_state)
end
# called from activerecord-5.2.3/lib/active_record/persistence.rb:232
activerecord-5.2.3/lib/active_record/transactions.rb:494
def update_attributes_from_transaction_state(transaction_state)
if transaction_state && transaction_state.finalized?
restore_transaction_record_state(transaction_state.fully_rolledback?) if transaction_state.rolledback?
force_clear_transaction_record_state if transaction_state.fully_committed?
clear_transaction_record_state if transaction_state.fully_completed?
end
end
# called from activerecord-5.2.3/lib/active_record/transactions.rb:491
activemodel-5.2.3/lib/active_model/validations.rb:336
def valid?(context = nil)
current_context, self.validation_context = validation_context, context
errors.clear
run_validations!
ensure
self.validation_context = current_context
end
# called from activerecord-5.2.3/lib/active_record/validations.rb:67
activemodel-5.2.3/lib/active_model/validations.rb:303
def errors
@errors ||= Errors.new(self)
end
# called from activemodel-5.2.3/lib/active_model/validations.rb:338
activemodel-5.2.3/lib/active_model/errors.rb:74
def initialize(base)
@base = base
@messages = apply_default_array({})
@details = apply_default_array({})
end
# called from activemodel-5.2.3/lib/active_model/validations.rb:304
activemodel-5.2.3/lib/active_model/errors.rb:470
def apply_default_array(hash)
hash.default_proc = proc { |h, key| h[key] = [] }
hash
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:76
activemodel-5.2.3/lib/active_model/errors.rb:470
def apply_default_array(hash)
hash.default_proc = proc { |h, key| h[key] = [] }
hash
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:77
activemodel-5.2.3/lib/active_model/errors.rb:115
def clear
messages.clear
details.clear
end
# called from activemodel-5.2.3/lib/active_model/validations.rb:338
activemodel-5.2.3/lib/active_model/validations/callbacks.rb:117
def run_validations!
_run_validation_callbacks { super }
end
# called from activemodel-5.2.3/lib/active_model/validations.rb:339
activesupport-5.2.3/lib/active_support/callbacks.rb:815
def _run_#{name}_callbacks(&block)
run_callbacks #{name.inspect}, &block
end
# called from activemodel-5.2.3/lib/active_model/validations/callbacks.rb:118
activesupport-5.2.3/lib/active_support/callbacks.rb:94
def run_callbacks(kind)
callbacks = __callbacks[kind.to_sym]
if callbacks.empty?
yield if block_given?
else
env = Filters::Environment.new(self, false, nil)
next_sequence = callbacks.compile
invoke_sequence = Proc.new do
skipped = nil
while true
current = next_sequence
current.invoke_before(env)
if current.final?
env.value = !env.halted && (!block_given? || yield)
elsif current.skip?(env)
(skipped ||= []) << current
next_sequence = next_sequence.nested
next
else
next_sequence = next_sequence.nested
begin
target, block, method, *arguments = current.expand_call_template(env, invoke_sequence)
target.send(method, *arguments, &block)
ensure
next_sequence = current
end
end
current.invoke_after(env)
skipped.pop.invoke_after(env) while skipped && skipped.first
break env.value
end
end
# Common case: no 'around' callbacks defined
if next_sequence.final?
next_sequence.invoke_before(env)
env.value = !env.halted && (!block_given? || yield)
next_sequence.invoke_after(env)
env.value
else
invoke_sequence.call
end
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:816
activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:124
redefine_method(name) do
if instance_variable_defined?(ivar)
instance_variable_get ivar
else
self.class.public_send name
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:95
activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:106
redefine_method(name) { val }
# called from activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:128
activesupport-5.2.3/lib/active_support/callbacks.rb:539
def empty?; @chain.empty?; end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:97
activemodel-5.2.3/lib/active_model/validations.rb:408
def run_validations!
_run_validate_callbacks
errors.empty?
end
# called from activemodel-5.2.3/lib/active_model/validations/callbacks.rb:118
activesupport-5.2.3/lib/active_support/callbacks.rb:815
def _run_#{name}_callbacks(&block)
run_callbacks #{name.inspect}, &block
end
# called from activemodel-5.2.3/lib/active_model/validations.rb:409
activesupport-5.2.3/lib/active_support/callbacks.rb:94
def run_callbacks(kind)
callbacks = __callbacks[kind.to_sym]
if callbacks.empty?
yield if block_given?
else
env = Filters::Environment.new(self, false, nil)
next_sequence = callbacks.compile
invoke_sequence = Proc.new do
skipped = nil
while true
current = next_sequence
current.invoke_before(env)
if current.final?
env.value = !env.halted && (!block_given? || yield)
elsif current.skip?(env)
(skipped ||= []) << current
next_sequence = next_sequence.nested
next
else
next_sequence = next_sequence.nested
begin
target, block, method, *arguments = current.expand_call_template(env, invoke_sequence)
target.send(method, *arguments, &block)
ensure
next_sequence = current
end
end
current.invoke_after(env)
skipped.pop.invoke_after(env) while skipped && skipped.first
break env.value
end
end
# Common case: no 'around' callbacks defined
if next_sequence.final?
next_sequence.invoke_before(env)
env.value = !env.halted && (!block_given? || yield)
next_sequence.invoke_after(env)
env.value
else
invoke_sequence.call
end
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:816
activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:124
redefine_method(name) do
if instance_variable_defined?(ivar)
instance_variable_get ivar
else
self.class.public_send name
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:95
activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:106
redefine_method(name) { val }
# called from activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:128
activesupport-5.2.3/lib/active_support/callbacks.rb:539
def empty?; @chain.empty?; end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:97
activesupport-5.2.3/lib/active_support/callbacks.rb:563
def compile
@callbacks || @mutex.synchronize do
final_sequence = CallbackSequence.new
@callbacks ||= @chain.reverse.inject(final_sequence) do |callback_sequence, callback|
callback.apply callback_sequence
end
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:101
activesupport-5.2.3/lib/active_support/callbacks.rb:473
def initialize(nested = nil, call_template = nil, user_conditions = nil)
@nested = nested
@call_template = call_template
@user_conditions = user_conditions
@before = []
@after = []
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:565
activesupport-5.2.3/lib/active_support/callbacks.rb:334
def apply(callback_sequence)
user_conditions = conditions_lambdas
user_callback = CallTemplate.build(@filter, self)
case kind
when :before
Filters::Before.build(callback_sequence, user_callback.make_lambda, user_conditions, chain_config, @filter)
when :after
Filters::After.build(callback_sequence, user_callback.make_lambda, user_conditions, chain_config)
when :around
callback_sequence.around(user_callback, user_conditions)
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:567
activesupport-5.2.3/lib/active_support/callbacks.rb:374
def conditions_lambdas
@if.map { |c| CallTemplate.build(c, self).make_lambda } +
@unless.map { |c| CallTemplate.build(c, self).inverted_lambda }
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:335
activesupport-5.2.3/lib/active_support/callbacks.rb:447
def self.build(filter, callback)
case filter
when Symbol
new(nil, filter, [], nil)
when Conditionals::Value
new(filter, :call, [:target, :value], nil)
when ::Proc
if filter.arity > 1
new(nil, :instance_exec, [:target, :block], filter)
elsif filter.arity > 0
new(nil, :instance_exec, [:target], filter)
else
new(nil, :instance_exec, [], filter)
end
else
method_to_call = callback.current_scopes.join("_")
new(filter, method_to_call, [:target], nil)
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:336
activesupport-5.2.3/lib/active_support/callbacks.rb:348
def current_scopes
Array(chain_config[:scope]).map { |s| public_send(s) }
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:462
activesupport-5.2.3/lib/active_support/callbacks.rb:383
def initialize(target, method, arguments, block)
@override_target = target
@method_name = method
@arguments = arguments
@override_block = block
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:464
activesupport-5.2.3/lib/active_support/callbacks.rb:423
def make_lambda
lambda do |target, value, &block|
target, block, method, *arguments = expand(target, value, block)
target.send(method, *arguments, &block)
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:340
activesupport-5.2.3/lib/active_support/callbacks.rb:162
def self.build(callback_sequence, user_callback, user_conditions, chain_config, filter)
halted_lambda = chain_config[:terminator]
if user_conditions.any?
halting_and_conditional(callback_sequence, user_callback, user_conditions, halted_lambda, filter)
else
halting(callback_sequence, user_callback, halted_lambda, filter)
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:340
activesupport-5.2.3/lib/active_support/callbacks.rb:191
def self.halting(callback_sequence, user_callback, halted_lambda, filter)
callback_sequence.before do |env|
target = env.target
value = env.value
halted = env.halted
unless halted
result_lambda = -> { user_callback.call target, value }
env.halted = halted_lambda.call(target, result_lambda)
if env.halted
target.send :halted_callback_hook, filter
end
end
env
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:168
activesupport-5.2.3/lib/active_support/callbacks.rb:482
def before(&before)
@before.unshift(before)
self
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:192
activesupport-5.2.3/lib/active_support/callbacks.rb:504
def final?
!@call_template
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:130
activesupport-5.2.3/lib/active_support/callbacks.rb:512
def invoke_before(arg)
@before.each { |b| b.call(arg) }
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:131
activesupport-5.2.3/lib/active_support/callbacks.rb:403
def expand(target, value, block)
result = @arguments.map { |arg|
case arg
when :value; value
when :target; target
when :block; block || raise(ArgumentError)
end
}
result.unshift @method_name
result.unshift @override_block || block
result.unshift @override_target || target
# target, block, method, *arguments = result
# target.send(method, *arguments, &block)
result
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:425
activemodel-5.2.3/lib/active_model/validator.rb:148
def validate(record)
attributes.each do |attribute|
value = record.read_attribute_for_validation(attribute)
next if (value.nil? && options[:allow_nil]) || (value.blank? && options[:allow_blank])
validate_each(record, attribute, value)
end
end
# called from activesupport-5.2.3/lib/active_support/callbacks.rb:426
activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:76
def _read_attribute(attr_name) # :nodoc:
@attributes.fetch_value(attr_name.to_s) { |n| yield n if block_given? }
end
# called from activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:40
activemodel-5.2.3/lib/active_model/attribute_set.rb:47
def fetch_value(name)
self[name].value { |n| yield n if block_given? }
end
# called from activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:77
activemodel-5.2.3/lib/active_model/attribute_set.rb:15
def [](name)
attributes[name] || Attribute.null(name)
end
# called from activemodel-5.2.3/lib/active_model/attribute_set.rb:48
activemodel-5.2.3/lib/active_model/attribute.rb:40
def value
# `defined?` is cheaper than `||=` when we get back falsy values
@value = type_cast(value_before_type_cast) unless defined?(@value)
@value
end
# called from activemodel-5.2.3/lib/active_model/attribute_set.rb:48
activesupport-5.2.3/lib/active_support/core_ext/object/blank.rb:122
def blank?
# The regexp that matches blank strings is expensive. For the case of empty
# strings we can speed up this method (~3.5x) with an empty? call. The
# penalty for the rest of strings is marginal.
empty? ||
begin
BLANK_RE.match?(self)
rescue Encoding::CompatibilityError
ENCODED_BLANKS[self.encoding].match?(self)
end
end
# called from activemodel-5.2.3/lib/active_model/validator.rb:151
activerecord-5.2.3/lib/active_record/validations/presence.rb:6
def validate_each(record, attribute, association_or_value)
if record.class._reflect_on_association(attribute)
association_or_value = Array.wrap(association_or_value).reject(&:marked_for_destruction?)
end
super
end
# called from activemodel-5.2.3/lib/active_model/validator.rb:152
activerecord-5.2.3/lib/active_record/reflection.rb:115
def _reflect_on_association(association) #:nodoc:
_reflections[association.to_s]
end
# called from activerecord-5.2.3/lib/active_record/validations/presence.rb:7
activesupport-5.2.3/lib/active_support/core_ext/class/attribute.rb:106
redefine_method(name) { val }
# called from activerecord-5.2.3/lib/active_record/reflection.rb:116
activemodel-5.2.3/lib/active_model/validations/presence.rb:6
def validate_each(record, attr_name, value)
record.errors.add(attr_name, :blank, options) if value.blank?
end
# called from activerecord-5.2.3/lib/active_record/validations/presence.rb:10
activesupport-5.2.3/lib/active_support/core_ext/object/blank.rb:122
def blank?
# The regexp that matches blank strings is expensive. For the case of empty
# strings we can speed up this method (~3.5x) with an empty? call. The
# penalty for the rest of strings is marginal.
empty? ||
begin
BLANK_RE.match?(self)
rescue Encoding::CompatibilityError
ENCODED_BLANKS[self.encoding].match?(self)
end
end
# called from activemodel-5.2.3/lib/active_model/validations/presence.rb:7
activemodel-5.2.3/lib/active_model/validations.rb:303
def errors
@errors ||= Errors.new(self)
end
# called from activemodel-5.2.3/lib/active_model/validations/presence.rb:7
activemodel-5.2.3/lib/active_model/errors.rb:295
def add(attribute, message = :invalid, options = {})
message = message.call if message.respond_to?(:call)
detail = normalize_detail(message, options)
message = normalize_message(attribute, message, options)
if exception = options[:strict]
exception = ActiveModel::StrictValidationFailed if exception == true
raise exception, full_message(attribute, message)
end
details[attribute.to_sym] << detail
messages[attribute.to_sym] << message
end
# called from activemodel-5.2.3/lib/active_model/validations/presence.rb:7
activemodel-5.2.3/lib/active_model/errors.rb:460
def normalize_detail(message, options)
{ error: message }.merge(options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS))
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:297
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:12
def except(*keys)
dup.except!(*keys)
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:461
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:20
def except!(*keys)
keys.each { |key| delete(key) }
self
end
# called from activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:13
activemodel-5.2.3/lib/active_model/errors.rb:451
def normalize_message(attribute, message, options)
case message
when Symbol
generate_message(attribute, message, options.except(*CALLBACKS_OPTIONS))
else
message
end
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:298
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:12
def except(*keys)
dup.except!(*keys)
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:454
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:20
def except!(*keys)
keys.each { |key| delete(key) }
self
end
# called from activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:13
activemodel-5.2.3/lib/active_model/errors.rb:401
def generate_message(attribute, type = :invalid, options = {})
type = options.delete(:message) if options[:message].is_a?(Symbol)
if @base.class.respond_to?(:i18n_scope)
i18n_scope = @base.class.i18n_scope.to_s
defaults = @base.class.lookup_ancestors.flat_map do |klass|
[ :"#{i18n_scope}.errors.models.#{klass.model_name.i18n_key}.attributes.#{attribute}.#{type}",
:"#{i18n_scope}.errors.models.#{klass.model_name.i18n_key}.#{type}" ]
end
defaults << :"#{i18n_scope}.errors.messages.#{type}"
else
defaults = []
end
defaults << :"errors.attributes.#{attribute}.#{type}"
defaults << :"errors.messages.#{type}"
key = defaults.shift
defaults = options.delete(:message) if options[:message]
value = (attribute != :base ? @base.send(:read_attribute_for_validation, attribute) : nil)
options = {
default: defaults,
model: @base.model_name.human,
attribute: @base.class.human_attribute_name(attribute),
value: value,
object: @base
}.merge!(options)
I18n.translate(key, options)
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:454
activerecord-5.2.3/lib/active_record/translation.rb:20
def i18n_scope #:nodoc:
:activerecord
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:405
activerecord-5.2.3/lib/active_record/translation.rb:8
def lookup_ancestors #:nodoc:
klass = self
classes = [klass]
return classes if klass == ActiveRecord::Base
while klass != klass.base_class
classes << klass = klass.superclass
end
classes
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:406
activerecord-5.2.3/lib/active_record/inheritance.rb:95
def base_class
unless self < Base
raise ActiveRecordError, "#{name} doesn't belong in a hierarchy descending from ActiveRecord"
end
if superclass == Base || superclass.abstract_class?
self
else
superclass.base_class
end
end
# called from activerecord-5.2.3/lib/active_record/translation.rb:13
activerecord-5.2.3/lib/active_record/inheritance.rb:151
def abstract_class?
defined?(@abstract_class) && @abstract_class == true
end
# called from activerecord-5.2.3/lib/active_record/inheritance.rb:100
activemodel-5.2.3/lib/active_model/naming.rb:237
def model_name
@_model_name ||= begin
namespace = parents.detect do |n|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
end
ActiveModel::Name.new(self, namespace)
end
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:407
activesupport-5.2.3/lib/active_support/core_ext/module/introspection.rb:50
def parents
parents = []
if parent_name
parts = parent_name.split("::")
until parts.empty?
parents << ActiveSupport::Inflector.constantize(parts * "::")
parts.pop
end
end
parents << Object unless parents.include? Object
parents
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:239
activesupport-5.2.3/lib/active_support/core_ext/module/introspection.rb:9
def parent_name
if defined?(@parent_name)
@parent_name
else
parent_name = name =~ /::[^:]+\Z/ ? $`.freeze : nil
@parent_name = parent_name unless frozen?
parent_name
end
end
# called from activesupport-5.2.3/lib/active_support/core_ext/module/introspection.rb:52
activemodel-5.2.3/lib/active_model/naming.rb:148
def initialize(klass, namespace = nil, name = nil)
@name = name || klass.name
raise ArgumentError, "Class name cannot be blank. You need to supply a name argument when anonymous class given" if @name.blank?
@unnamespaced = @name.sub(/^#{namespace.name}::/, "") if namespace
@klass = klass
@singular = _singularize(@name)
@plural = ActiveSupport::Inflector.pluralize(@singular)
@element = ActiveSupport::Inflector.underscore(ActiveSupport::Inflector.demodulize(@name))
@human = ActiveSupport::Inflector.humanize(@element)
@collection = ActiveSupport::Inflector.tableize(@name)
@param_key = (namespace ? _singularize(@unnamespaced) : @singular)
@i18n_key = @name.underscore.to_sym
@route_key = (namespace ? ActiveSupport::Inflector.pluralize(@param_key) : @plural.dup)
@singular_route_key = ActiveSupport::Inflector.singularize(@route_key)
@route_key << "_index" if @plural == @singular
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:242
activesupport-5.2.3/lib/active_support/core_ext/object/blank.rb:122
def blank?
# The regexp that matches blank strings is expensive. For the case of empty
# strings we can speed up this method (~3.5x) with an empty? call. The
# penalty for the rest of strings is marginal.
empty? ||
begin
BLANK_RE.match?(self)
rescue Encoding::CompatibilityError
ENCODED_BLANKS[self.encoding].match?(self)
end
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:151
activemodel-5.2.3/lib/active_model/naming.rb:195
def _singularize(string)
ActiveSupport::Inflector.underscore(string).tr("/".freeze, "_".freeze)
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:155
activesupport-5.2.3/lib/active_support/inflector/methods.rb:92
def underscore(camel_cased_word)
return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
word = camel_cased_word.to_s.gsub("::".freeze, "/".freeze)
word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_'.freeze }#{$2.downcase}" }
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze)
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2'.freeze)
word.tr!("-".freeze, "_".freeze)
word.downcase!
word
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:196
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:95
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:32
def pluralize(word, locale = :en)
apply_inflections(word, inflections(locale).plurals, locale)
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:156
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:33
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:399
def apply_inflections(word, rules, locale = :en)
result = word.to_s.dup
if word.empty? || inflections(locale).uncountables.uncountable?(result)
result
else
rules.each { |(rule, replacement)| break if result.sub!(rule, replacement) }
result
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:33
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:56
def uncountable?(str)
@regex_array.any? { |regex| regex.match? str }
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activesupport-5.2.3/lib/active_support/inflector/methods.rb:221
def demodulize(path)
path = path.to_s
if i = path.rindex("::")
path[(i + 2)..-1]
else
path
end
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:157
activesupport-5.2.3/lib/active_support/inflector/methods.rb:92
def underscore(camel_cased_word)
return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
word = camel_cased_word.to_s.gsub("::".freeze, "/".freeze)
word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_'.freeze }#{$2.downcase}" }
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze)
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2'.freeze)
word.tr!("-".freeze, "_".freeze)
word.downcase!
word
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:157
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:95
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:129
def humanize(lower_case_and_underscored_word, capitalize: true, keep_id_suffix: false)
result = lower_case_and_underscored_word.to_s.dup
inflections.humans.each { |(rule, replacement)| break if result.sub!(rule, replacement) }
result.sub!(/\A_+/, "".freeze)
unless keep_id_suffix
result.sub!(/_id\z/, "".freeze)
end
result.tr!("_".freeze, " ".freeze)
result.gsub!(/([a-z\d]*)/i) do |match|
"#{inflections.acronyms[match.downcase] || match.downcase}"
end
if capitalize
result.sub!(/\A\w/) { |match| match.upcase }
end
result
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:158
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:132
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:141
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:141
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:187
def tableize(class_name)
pluralize(underscore(class_name))
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:159
activesupport-5.2.3/lib/active_support/inflector/methods.rb:92
def underscore(camel_cased_word)
return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
word = camel_cased_word.to_s.gsub("::".freeze, "/".freeze)
word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_'.freeze }#{$2.downcase}" }
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze)
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2'.freeze)
word.tr!("-".freeze, "_".freeze)
word.downcase!
word
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:188
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:95
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:32
def pluralize(word, locale = :en)
apply_inflections(word, inflections(locale).plurals, locale)
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:188
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:33
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:399
def apply_inflections(word, rules, locale = :en)
result = word.to_s.dup
if word.empty? || inflections(locale).uncountables.uncountable?(result)
result
else
rules.each { |(rule, replacement)| break if result.sub!(rule, replacement) }
result
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:33
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:56
def uncountable?(str)
@regex_array.any? { |regex| regex.match? str }
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activesupport-5.2.3/lib/active_support/core_ext/string/inflections.rb:127
def underscore
ActiveSupport::Inflector.underscore(self)
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:161
activesupport-5.2.3/lib/active_support/inflector/methods.rb:92
def underscore(camel_cased_word)
return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
word = camel_cased_word.to_s.gsub("::".freeze, "/".freeze)
word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_'.freeze }#{$2.downcase}" }
word.gsub!(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2'.freeze)
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2'.freeze)
word.tr!("-".freeze, "_".freeze)
word.downcase!
word
end
# called from activesupport-5.2.3/lib/active_support/core_ext/string/inflections.rb:128
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:95
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:49
def singularize(word, locale = :en)
apply_inflections(word, inflections(locale).singulars, locale)
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:164
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:50
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/methods.rb:399
def apply_inflections(word, rules, locale = :en)
result = word.to_s.dup
if word.empty? || inflections(locale).uncountables.uncountable?(result)
result
else
rules.each { |(rule, replacement)| break if result.sub!(rule, replacement) }
result
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:50
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:252
def inflections(locale = :en)
if block_given?
yield Inflections.instance(locale)
else
Inflections.instance(locale)
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:66
def self.instance(locale = :en)
@__instance__[locale] ||= new
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:256
concurrent-ruby-1.1.5/lib/concurrent/map.rb:132
def [](key)
if value = super # non-falsy value is an existing mapping, return it right away
value
# re-check is done with get_or_default(key, NULL) instead of a simple !key?(key) in order to avoid a race condition, whereby by the time the current thread gets to the key?(key) call
# a key => value mapping might have already been created by a different thread (key?(key) would then return true, this elsif branch wouldn't be taken and an incorrent +nil+ value
# would be returned)
# note: nil == value check is not technically necessary
elsif @default_proc && nil == value && NULL == (value = get_or_default(key, NULL))
@default_proc.call(self, key)
else
value
end
end
# called from activesupport-5.2.3/lib/active_support/inflector/inflections.rb:67
concurrent-ruby-1.1.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb:19
def [](key)
@backend[key]
end
# called from concurrent-ruby-1.1.5/lib/concurrent/map.rb:133
activesupport-5.2.3/lib/active_support/inflector/inflections.rb:56
def uncountable?(str)
@regex_array.any? { |regex| regex.match? str }
end
# called from activesupport-5.2.3/lib/active_support/inflector/methods.rb:402
activemodel-5.2.3/lib/active_model/naming.rb:237
def model_name
@_model_name ||= begin
namespace = parents.detect do |n|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
end
ActiveModel::Name.new(self, namespace)
end
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:408
activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:76
def _read_attribute(attr_name) # :nodoc:
@attributes.fetch_value(attr_name.to_s) { |n| yield n if block_given? }
end
# called from activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:40
activemodel-5.2.3/lib/active_model/attribute_set.rb:47
def fetch_value(name)
self[name].value { |n| yield n if block_given? }
end
# called from activerecord-5.2.3/lib/active_record/attribute_methods/read.rb:77
activemodel-5.2.3/lib/active_model/attribute_set.rb:15
def [](name)
attributes[name] || Attribute.null(name)
end
# called from activemodel-5.2.3/lib/active_model/attribute_set.rb:48
activemodel-5.2.3/lib/active_model/attribute.rb:40
def value
# `defined?` is cheaper than `||=` when we get back falsy values
@value = type_cast(value_before_type_cast) unless defined?(@value)
@value
end
# called from activemodel-5.2.3/lib/active_model/attribute_set.rb:48
activemodel-5.2.3/lib/active_model/naming.rb:222
base.delegate :model_name, to: :class
# called from activemodel-5.2.3/lib/active_model/errors.rb:424
activemodel-5.2.3/lib/active_model/naming.rb:237
def model_name
@_model_name ||= begin
namespace = parents.detect do |n|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
end
ActiveModel::Name.new(self, namespace)
end
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:222
activemodel-5.2.3/lib/active_model/naming.rb:178
def human(options = {})
return @human unless @klass.respond_to?(:lookup_ancestors) &&
@klass.respond_to?(:i18n_scope)
defaults = @klass.lookup_ancestors.map do |klass|
klass.model_name.i18n_key
end
defaults << options[:default] if options[:default]
defaults << @human
options = { scope: [@klass.i18n_scope, :models], count: 1, default: defaults }.merge!(options.except(:default))
I18n.translate(defaults.shift, options)
end
# called from activemodel-5.2.3/lib/active_model/errors.rb:424
activerecord-5.2.3/lib/active_record/translation.rb:8
def lookup_ancestors #:nodoc:
klass = self
classes = [klass]
return classes if klass == ActiveRecord::Base
while klass != klass.base_class
classes << klass = klass.superclass
end
classes
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:182
activerecord-5.2.3/lib/active_record/inheritance.rb:95
def base_class
unless self < Base
raise ActiveRecordError, "#{name} doesn't belong in a hierarchy descending from ActiveRecord"
end
if superclass == Base || superclass.abstract_class?
self
else
superclass.base_class
end
end
# called from activerecord-5.2.3/lib/active_record/translation.rb:13
activerecord-5.2.3/lib/active_record/inheritance.rb:151
def abstract_class?
defined?(@abstract_class) && @abstract_class == true
end
# called from activerecord-5.2.3/lib/active_record/inheritance.rb:100
activemodel-5.2.3/lib/active_model/naming.rb:237
def model_name
@_model_name ||= begin
namespace = parents.detect do |n|
n.respond_to?(:use_relative_model_naming?) && n.use_relative_model_naming?
end
ActiveModel::Name.new(self, namespace)
end
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:183
activerecord-5.2.3/lib/active_record/translation.rb:20
def i18n_scope #:nodoc:
:activerecord
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:189
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:12
def except(*keys)
dup.except!(*keys)
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:189
activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:20
def except!(*keys)
keys.each { |key| delete(key) }
self
end
# called from activesupport-5.2.3/lib/active_support/core_ext/hash/except.rb:13
i18n-1.6.0/lib/i18n.rb:179
def translate(key = nil, *, throw: false, raise: false, locale: nil, **options) # TODO deprecate :raise
locale ||= config.locale
raise Disabled.new('t') if locale == false
enforce_available_locales!(locale)
backend = config.backend
result = catch(:exception) do
if key.is_a?(Array)
key.map { |k| backend.translate(locale, k, options) }
else
backend.translate(locale, key, options)
end
end
if result.is_a?(MissingTranslation)
handle_exception((throw && :throw || raise && :raise), result, locale, key, options)
else
result
end
end
# called from activemodel-5.2.3/lib/active_model/naming.rb:190
i18n-1.6.0/lib/i18n.rb:41
def config
Thread.current[:i18n_config] ||= I18n::Config.new
end
# called from i18n-1.6.0/lib/i18n.rb:180
i18n-1.6.0/lib/i18n/config.rb:9
def locale
defined?(@locale) && @locale != nil ? @locale : default_locale
end
# called from i18n-1.6.0/lib/i18n.rb:180
i18n-1.6.0/lib/i18n/config.rb:30
def default_locale
@@default_locale ||= :en
end
# called from i18n-1.6.0/lib/i18n/config.rb:10
i18n-1.6.0/lib/i18n.rb:324
def enforce_available_locales!(locale)
if locale != false && config.enforce_available_locales
raise I18n::InvalidLocale.new(locale) if !locale_available?(locale)
end
end
# called from i18n-1.6.0/lib/i18n.rb:182
i18n-1.6.0/lib/i18n.rb:41
def config
Thread.current[:i18n_config] ||= I18n::Config.new
end
# called from i18n-1.6.0/lib/i18n.rb:325
i18n-1.6.0/lib/i18n/config.rb:141
def enforce_available_locales
@@enforce_available_locales
end
# called from i18n-1.6.0/lib/i18n.rb:325
i18n-1.6.0/lib/i18n.rb:319
def locale_available?(locale)
I18n.config.available_locales_set.include?(locale)
end
# called from i18n-1.6.0/lib/i18n.rb:326
i18n-1.6.0/lib/i18n.rb:41
def config
Thread.current[:i18n_config] ||= I18n::Config.new
end
# called from i18n-1.6.0/lib/i18n.rb:320
i18n-1.6.0/lib/i18n/config.rb:50
def available_locales_set #:nodoc:
@@available_locales_set ||= available_locales.inject(Set.new) do |set, locale|
set << locale.to_s << locale.to_sym
end
end
# called from i18n-1.6.0/lib/i18n.rb:320
i18n-1.6.0/lib/i18n/config.rb:43
def available_locales
@@available_locales ||= nil
@@available_locales || backend.available_locales
end
# called from i18n-1.6.0/lib/i18n/config.rb:51
i18n-1.6.0/lib/i18n/config.rb:20
def backend
@@backend ||= Backend::Simple.new
end
# called from i18n-1.6.0/lib/i18n/config.rb:45
i18n-1.6.0/lib/i18n/backend/simple.rb:51
def available_locales
init_translations unless initialized?
translations.inject([]) do |locales, (locale, data)|
locales << locale unless data.size <= 1 && (data.empty? || data.has_key?(:i18n))
locales
end
end
# called from i18n-1.6.0/lib/i18n/config.rb:45
i18n-1.6.0/lib/i18n/backend/simple.rb:29
def initialized?
@initialized ||= false
end
# called from i18n-1.6.0/lib/i18n/backend/simple.rb:52
i18n-1.6.0/lib/i18n/backend/simple.rb:81
def init_translations
load_translations
@initialized = true
end
# called from i18n-1.6.0/lib/i18n/backend/simple.rb:52
i18n-1.6.0/lib/i18n/backend/base.rb:16
def load_translations(*filenames)
filenames = I18n.load_path if filenames.empty?
filenames.flatten.each { |filename| load_file(filename) }
end
# called from i18n-1.6.0/lib/i18n/backend/simple.rb:82
i18n-1.6.0/lib/i18n.rb:54
def #{method}
config.#{method}
end
def #{method}=(value)
config.#{method} = (value)
end
DELEGATORS
end
# Tells the backend to reload translations. Used in situations like the
# Rails development environment. Backends can implement whatever strategy
# is useful.
def reload!
config.clear_available_locales_set
config.backend.reload!
end
# Tells the backend to load translations now. Used in situations like the
# Rails production environment. Backends can implement whatever strategy
# is useful.
def eager_load!
config.backend.eager_load!
end
# Translates, pluralizes and interpolates a given key using a given locale,
# scope, and default, as well as interpolation values.
#
# *LOOKUP*
#
# Translation data is organized as a nested hash using the upper-level keys
# as namespaces. <em>E.g.</em>, ActionView ships with the translation:
# <tt>:date => {:formats => {:short => "%b %d"}}</tt>.
#
# Translations can be looked up at any level of this hash using the key argument
# and the scope option. <em>E.g.</em>, in this example <tt>I18n.t :date</tt>
# returns the whole translations hash <tt>{:formats => {:short => "%b %d"}}</tt>.
#
# Key can be either a single key or a dot-separated key (both Strings and Symbols
# work). <em>E.g.</em>, the short format can be looked up using both:
# I18n.t 'date.formats.short'
# I18n.t :'date.formats.short'
#
# Scope can be either a single key, a dot-separated key or an array of keys
# or dot-separated keys. Keys and scopes can be combined freely. So these
# examples will all look up the same short date format:
# I18n.t 'date.formats.short'
# I18n.t 'formats.short', :scope => 'date'
# I18n.t 'short', :scope => 'date.formats'
# I18n.t 'short', :scope => %w(date formats)
#
# *INTERPOLATION*
#
# Translations can contain interpolation variables which will be replaced by
# values passed to #translate as part of the options hash, with the keys matching
# the interpolation variable names.
#
# <em>E.g.</em>, with a translation <tt>:foo => "foo %{bar}"</tt> the option
# value for the key +bar+ will be interpolated into the translation:
# I18n.t :foo, :bar => 'baz' # => 'foo baz'
#
# *PLURALIZATION*
#
# Translation data can contain pluralized translations. Pluralized translations
# are arrays of singluar/plural versions of translations like <tt>['Foo', 'Foos']</tt>.
#
# Note that <tt>I18n::Backend::Simple</tt> only supports an algorithm for English
# pluralization rules. Other algorithms can be supported by custom backends.
#
# This returns the singular version of a pluralized translation:
# I18n.t :foo, :count => 1 # => 'Foo'
#
# These both return the plural version of a pluralized translation:
# I18n.t :foo, :count => 0 # => 'Foos'
# I18n.t :foo, :count => 2 # => 'Foos'
#
# The <tt>:count</tt> option can be used both for pluralization and interpolation.
# <em>E.g.</em>, with the translation
# <tt>:foo => ['%{count} foo', '%{count} foos']</tt>, count will
# be interpolated to the pluralized translation:
# I18n.t :foo, :count => 1 # => '1 foo'
#
# *DEFAULTS*
#
# This returns the translation for <tt>:foo</tt> or <tt>default</tt> if no translation was found:
# I18n.t :foo, :default => 'default'
#
# This returns the translation for <tt>:foo</tt> or the translation for <tt>:bar</tt> if no
# translation for <tt>:foo</tt> was found:
# I18n.t :foo, :default => :bar
#
# Returns the translation for <tt>:foo</tt> or the translation for <tt>:bar</tt>
# or <tt>default</tt> if no translations for <tt>:foo</tt> and <tt>:bar</tt> were found.
# I18n.t :foo, :default => [:bar, 'default']
#
# *BULK LOOKUP*
#
# This returns an array with the translations for <tt>:foo</tt> and <tt>:bar</tt>.
# I18n.t [:foo, :bar]
#
# Can be used with dot-separated nested keys:
# I18n.t [:'baz.foo', :'baz.bar']
#
# Which is the same as using a scope option:
# I18n.t [:foo, :bar], :scope => :baz
#
# *LAMBDAS*
#
# Both translations and defaults can be given as Ruby lambdas. Lambdas will be
# called and passed the key and options.
#
# E.g. assuming the key <tt>:salutation</tt> resolves to:
# lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
#
# Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
#
# Note that the string returned by lambda will go through string interpolation too,
# so the following lambda would give the same result:
# lambda { |key, options| options[:gender] == 'm' ? "Mr. %{name}" : "Mrs. %{name}" }
#
# It is recommended to use/implement lambdas in an "idempotent" way. E.g. when
# a cache layer is put in front of I18n.translate it will generate a cache key
# from the argument values passed to #translate. Therefor your lambdas should
# always return the same translations/values per unique combination of argument
# values.
def translate(key = nil, *, throw: false, raise: false, locale: nil, **options) # TODO deprecate :raise
locale ||= config.locale
raise Disabled.new('t') if locale == false
enforce_available_locales!(locale)
backend = config.backend
result = catch(:exception) do
if key.is_a?(Array)
key.map { |k| backend.translate(locale, k, options) }
else
backend.translate(locale, key, options)
end
end
if result.is_a?(MissingTranslation)
handle_exception((throw && :throw || raise && :raise), result, locale, key, options)
else
result
end
end
alias :t :translate
# Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
# this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
def translate!(key, options = EMPTY_HASH)
translate(key, options.merge(:raise => true))
end
alias :t! :translate!
# Returns true if a translation exists for a given key, otherwise returns false.
def exists?(key, _locale = nil, locale: _locale)
locale ||= config.locale
raise Disabled.new('exists?') if locale == false
raise I18n::ArgumentError if key.is_a?(String) && key.empty?
config.backend.exists?(locale, key)
end
# Transliterates UTF-8 characters to ASCII. By default this method will
# transliterate only Latin strings to an ASCII approximation:
#
# I18n.transliterate("Ærøskøbing")
# # => "AEroskobing"
#
# I18n.transliterate("日本語")
# # => "???"
#
# It's also possible to add support for per-locale transliterations. I18n
# expects transliteration rules to be stored at
# <tt>i18n.transliterate.rule</tt>.
#
# Transliteration rules can either be a Hash or a Proc. Procs must accept a
# single string argument. Hash rules inherit the default transliteration
# rules, while Procs do not.
#
# *Examples*
#
# Setting a Hash in <locale>.yml:
#
# i18n:
# transliterate:
# rule:
# ü: "ue"
# ö: "oe"
#
# Setting a Hash using Ruby:
#
# store_translations(:de, :i18n => {
# :transliterate => {
# :rule => {
# "ü" => "ue",
# "ö" => "oe"
# }
# }
# )
#
# Setting a Proc:
#
# translit = lambda {|string| MyTransliterator.transliterate(string) }
# store_translations(:xx, :i18n => {:transliterate => {:rule => translit})
#
# Transliterating strings:
#
# I18n.locale = :en
# I18n.transliterate("Jürgen") # => "Jurgen"
# I18n.locale = :de
# I18n.transliterate("Jürgen") # => "Juergen"
# I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen"
# I18n.transliterate("Jürgen", :locale => :de) # => "Juergen"
def transliterate(key, *, throw: false, raise: false, locale: nil, replacement: nil, **options)
locale ||= config.locale
raise Disabled.new('transliterate') if locale == false
enforce_available_locales!(locale)
config.backend.transliterate(locale, key, replacement)
rescue I18n::ArgumentError => exception
handle_exception((throw && :throw || raise && :raise), exception, locale, key, options)
end
# Localizes certain objects, such as dates and numbers to local formatting.
def localize(object, locale: nil, format: nil, **options)
locale ||= config.locale
raise Disabled.new('l') if locale == false
enforce_available_locales!(locale)
format ||= :default
config.backend.localize(locale, object, format, options)
end
alias :l :localize
# Executes block with given I18n.locale set.
def with_locale(tmp_locale = nil)
if tmp_locale == nil
yield
else
current_locale = self.locale
self.locale = tmp_locale
begin
yield
ensure
self.locale = current_locale
end
end
end
# Merges the given locale, key and scope into a single array of keys.
# Splits keys that contain dots into multiple keys. Makes sure all
# keys are Symbols.
def normalize_keys(locale, key, scope, separator = nil)
separator ||= I18n.default_separator
keys = []
keys.concat normalize_key(locale, separator)
keys.concat normalize_key(scope, separator)
keys.concat normalize_key(key, separator)
keys
end
# Returns true when the passed locale, which can be either a String or a
# Symbol, is in the list of available locales. Returns false otherwise.
def locale_available?(locale)
I18n.config.available_locales_set.include?(locale)
end
# Raises an InvalidLocale exception when the passed locale is not available.
def enforce_available_locales!(locale)
if locale != false && config.enforce_available_locales
raise I18n::InvalidLocale.new(locale) if !locale_available?(locale)
end
end
def available_locales_initialized?
config.available_locales_initialized?
end
private
# Any exceptions thrown in translate will be sent to the @@exception_handler
# which can be a Symbol, a Proc or any other Object unless they're forced to
# be raised or thrown (MissingTranslation).
#
# If exception_handler is a Symbol then it will simply be sent to I18n as
# a method call. A Proc will simply be called. In any other case the
# method #call will be called on the exception_handler object.
#
# Examples:
#
# I18n.exception_handler = :custom_exception_handler # this is the default
# I18n.custom_exception_handler(exception, locale, key, options) # will be called like this
#
# I18n.exception_handler = lambda { |*args| ... } # a lambda
# I18n.exception_handler.call(exception, locale, key, options) # will be called like this
#
# I18n.exception_handler = I18nExceptionHandler.new # an object
# I18n.exception_handler.call(exception, locale, key, options) # will be called like this
def handle_exception(handling, exception, locale, key, options)
case handling
when :raise
raise exception.respond_to?(:to_exception) ? exception.to_exception : exception
when :throw
throw :exception, exception
else
case handler = options[:exception_handler] || config.exception_handler
when Symbol
send(handler, exception, locale, key, options)
else
handler.call(exception, locale, key, options)
end
end
end
@@normalized_key_cache = I18n.new_double_nested_cache
def normalize_key(key, separator)
@@normalized_key_cache[separator][key] ||=
case key
when Array
key.map { |k| normalize_key(k, separator) }.flatten
else
keys = key.to_s.split(separator)
keys.delete('')
keys.map! do |k|
case k
when /\A[-+]?[1-9]\d*\z/ # integer
k.to_i
when 'true'
true
when 'false'
false
else
k.to_sym
end
end
keys
end
end
end
# called from i18n-1.6.0/lib/i18n/backend/base.rb:17
i18n-1.6.0/lib/i18n.rb:41
def config
Thread.current[:i18n_config] ||= I18n::Config.new
end
# called from i18n-1.6.0/lib/i18n.rb:55
i18n-1.6.0/lib/i18n/config.rb:126
def load_path
@@load_path ||= []
end
# called from i18n-1.6.0/lib/i18n.rb:55
i18n-1.6.0/lib/i18n/backend/base.rb:222
def load_file(filename)
type = File.extname(filename).tr('.', '').downcase
raise UnknownFileType.new(type, filename) unless respond_to?(:"load_#{type}", true)
data = send(:"load_#{type}", filename)
unless data.is_a?(Hash)
raise InvalidLocaleData.new(filename, 'expects it to return a hash, but does not')
end
data.each { |locale, d| store_translations(locale, d || {}) }
end
# called from i18n-1.6.0/lib/i18n/backend/base.rb:18
i18n-1.6.0/lib/i18n/backend/base.rb:240
def load_yml(filename)
begin
YAML.load_file(filename)
rescue TypeError, ScriptError, StandardError => e
raise InvalidLocaleData.new(filename, e.inspect)
end
end
# called from i18n-1.6.0/lib/i18n/backend/base.rb:225
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:576
def self.load_file filename, fallback: false
File.open(filename, 'r:bom|utf-8') { |f|
self.load f, filename: filename, fallback: fallback
}
end
# called from i18n-1.6.0/lib/i18n/backend/base.rb:242
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:271
def self.load yaml, legacy_filename = NOT_GIVEN, filename: nil, fallback: false, symbolize_names: false
if legacy_filename != NOT_GIVEN
warn_with_uplevel 'Passing filename with the 2nd argument of Psych.load is deprecated. Use keyword argument like Psych.load(yaml, filename: ...) instead.', uplevel: 1 if $VERBOSE
filename = legacy_filename
end
result = parse(yaml, filename: filename)
return fallback unless result
result = result.to_ruby if result
symbolize_names!(result) if symbolize_names
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:578
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:384
def self.parse yaml, legacy_filename = NOT_GIVEN, filename: nil, fallback: NOT_GIVEN
if legacy_filename != NOT_GIVEN
warn_with_uplevel 'Passing filename with the 2nd argument of Psych.parse is deprecated. Use keyword argument like Psych.parse(yaml, filename: ...) instead.', uplevel: 1 if $VERBOSE
filename = legacy_filename
end
parse_stream(yaml, filename: filename) do |node|
return node
end
if fallback != NOT_GIVEN
warn_with_uplevel 'Passing the `fallback` keyword argument of Psych.parse is deprecated.', uplevel: 1 if $VERBOSE
fallback
else
false
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:277
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:448
def self.parse_stream yaml, legacy_filename = NOT_GIVEN, filename: nil, &block
if legacy_filename != NOT_GIVEN
warn_with_uplevel 'Passing filename with the 2nd argument of Psych.parse_stream is deprecated. Use keyword argument like Psych.parse_stream(yaml, filename: ...) instead.', uplevel: 1 if $VERBOSE
filename = legacy_filename
end
if block_given?
parser = Psych::Parser.new(Handlers::DocumentStream.new(&block))
parser.parse yaml, filename
else
parser = self.parser
parser.parse yaml, filename
parser.handler.root
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:390
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:7
def initialize &block
super
@block = block
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:455
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:22
def initialize
@stack = []
@last = nil
@root = nil
@start_line = nil
@start_column = nil
@end_line = nil
@end_column = nil
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:8
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/parser.rb:47
def initialize handler = Handler.new
@handler = handler
@external_encoding = ANY
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:455
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:84
def start_stream encoding
@root = Nodes::Stream.new(encoding)
set_start_location(@root)
push @root
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/stream.rb:32
def initialize encoding = UTF8
super()
@encoding = encoding
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:85
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/stream.rb:33
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:86
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:87
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:12
def start_document version, tag_directives, implicit
n = Nodes::Document.new version, tag_directives, implicit
push n
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/document.rb:45
def initialize version = [], tag_directives = [], implicit = false
super()
@version = version
@tag_directives = tag_directives
@implicit = implicit
@implicit_end = true
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:13
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/document.rb:46
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:14
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:73
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:74
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:73
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:74
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:73
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:74
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:73
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:74
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:73
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/sequence.rb:74
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:48
def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
super()
@anchor = anchor
@tag = tag
@implicit = implicit
@style = style
end
# called from (eval):3
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:33
def initialize
@children = []
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/mapping.rb:49
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from (eval):4
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:111
def push value
@stack.push value
@last = value
end
# called from (eval):6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:96
def scalar value, anchor, tag, plain, quoted, style
s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
set_location(s)
@last.children << s
s
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/scalar.rb:58
def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
@value = value
@anchor = anchor
@tag = tag
@plain = plain
@quoted = quoted
@style = style
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:97
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:122
def set_location(node)
set_start_location(node)
set_end_location(node)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:98
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:127
def set_start_location(node)
node.start_line = @start_line
node.start_column = @start_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:124
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from (eval):10
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:132
def set_end_location(node)
node.end_line = @end_line
node.end_column = @end_column
end
# called from (eval):11
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:33
def event_location(start_line, start_column, end_line, end_column)
@start_line = start_line
@start_column = start_column
@end_line = end_line
@end_column = end_column
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:17
def end_document implicit_end = !streaming?
@last.implicit_end = implicit_end
@block.call pop
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:456
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/tree_builder.rb:116
def pop
x = @stack.pop
@last = @stack.last
x
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/handlers/document_stream.rb:19
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:49
def to_ruby
Visitors::ToRuby.create.accept(self)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych.rb:279
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:15
def self.create
class_loader = ClassLoader.new
scanner = ScalarScanner.new class_loader
new(scanner, class_loader)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:50
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:21
def initialize
@cache = CACHE.dup
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:25
def initialize class_loader
@string_cache = {}
@symbol_cache = {}
@class_loader = class_loader
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:17
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:23
def initialize ss, class_loader
super()
@st = {}
@ss = ss
@domain_types = Psych.domain_types
@class_loader = class_loader
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:18
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/node.rb:50
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:310
def visit_Psych_Nodes_Document o
accept o.root
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/nodes/document.rb:56
def root
children.first
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:311
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:311
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:158
def visit_Psych_Nodes_Mapping o
if Psych.load_tags[o.tag]
return revive(resolve_class(Psych.load_tags[o.tag]), o)
end
return revive_hash(register(o, {}), o) unless o.tag
case o.tag
when /^!ruby\/struct:?(.*)?$/
klass = resolve_class($1) if $1
if klass
s = register(o, klass.allocate)
members = {}
struct_members = s.members.map { |x| class_loader.symbolize x }
o.children.each_slice(2) do |k,v|
member = accept(k)
value = accept(v)
if struct_members.include?(class_loader.symbolize(member))
s.send("#{member}=", value)
else
members[member.to_s.sub(/^@/, '')] = value
end
end
init_with(s, members, o)
else
klass = class_loader.struct
members = o.children.map { |c| accept c }
h = Hash[*members]
s = klass.new(*h.map { |k,v|
class_loader.symbolize k
}).new(*h.map { |k,v| v })
register(o, s)
s
end
when /^!ruby\/object:?(.*)?$/
name = $1 || 'Object'
if name == 'Complex'
class_loader.complex
h = Hash[*o.children.map { |c| accept c }]
register o, Complex(h['real'], h['image'])
elsif name == 'Rational'
class_loader.rational
h = Hash[*o.children.map { |c| accept c }]
register o, Rational(h['numerator'], h['denominator'])
elsif name == 'Hash'
revive_hash(register(o, {}), o)
else
obj = revive((resolve_class(name) || class_loader.object), o)
obj
end
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
members = {}
string = nil
o.children.each_slice(2) do |k,v|
key = accept k
value = accept v
if key == 'str'
if klass
string = klass.allocate.replace value
else
string = value
end
register(o, string)
else
members[key] = value
end
end
init_with(string, members.map { |k,v| [k.to_s.sub(/^@/, ''),v] }, o)
when /^!ruby\/array:(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
members = Hash[o.children.map { |c| accept c }.each_slice(2).to_a]
list.replace members['internal']
members['ivars'].each do |ivar, v|
list.instance_variable_set ivar, v
end
list
when '!ruby/range'
klass = class_loader.range
h = Hash[*o.children.map { |c| accept c }]
register o, klass.new(h['begin'], h['end'], h['excl'])
when /^!ruby\/exception:?(.*)?$/
h = Hash[*o.children.map { |c| accept c }]
e = build_exception((resolve_class($1) || class_loader.exception),
h.delete('message'))
init_with(e, h, o)
when '!set', 'tag:yaml.org,2002:set'
set = class_loader.psych_set.new
@st[o.anchor] = set if o.anchor
o.children.each_slice(2) do |k,v|
set[accept(k)] = accept(v)
end
set
when /^!ruby\/hash-with-ivars(?::(.*))?$/
hash = $1 ? resolve_class($1).allocate : {}
register o, hash
o.children.each_slice(2) do |key, value|
case key.value
when 'elements'
revive_hash hash, value
when 'ivars'
value.children.each_slice(2) do |k,v|
hash.instance_variable_set accept(k), accept(v)
end
end
end
hash
when /^!map:(.*)$/, /^!ruby\/hash:(.*)$/
revive_hash register(o, resolve_class($1).allocate), o
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, class_loader.psych_omap.new)
o.children.each_slice(2) do |l,r|
map[accept(l)] = accept r
end
map
when /^!ruby\/marshalable:(.*)$/
name = $1
klass = resolve_class(name)
obj = register(o, klass.allocate)
if obj.respond_to?(:init_with)
init_with(obj, revive_hash({}, o), o)
elsif obj.respond_to?(:marshal_load)
marshal_data = o.children.map(&method(:accept))
obj.marshal_load(marshal_data)
obj
else
raise ArgumentError, "Cannot deserialize #{name}"
end
else
revive_hash(register(o, {}), o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:335
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
when Nodes::Alias, Nodes::Mapping
begin
hash.merge! val
rescue TypeError
hash[key] = val
end
when Nodes::Sequence
begin
h = {}
val.reverse_each do |value|
h.merge! value
end
hash.merge! h
rescue TypeError
hash[key] = val
end
else
hash[key] = val
end
else
hash[key] = val
end
}
hash
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:158
def visit_Psych_Nodes_Mapping o
if Psych.load_tags[o.tag]
return revive(resolve_class(Psych.load_tags[o.tag]), o)
end
return revive_hash(register(o, {}), o) unless o.tag
case o.tag
when /^!ruby\/struct:?(.*)?$/
klass = resolve_class($1) if $1
if klass
s = register(o, klass.allocate)
members = {}
struct_members = s.members.map { |x| class_loader.symbolize x }
o.children.each_slice(2) do |k,v|
member = accept(k)
value = accept(v)
if struct_members.include?(class_loader.symbolize(member))
s.send("#{member}=", value)
else
members[member.to_s.sub(/^@/, '')] = value
end
end
init_with(s, members, o)
else
klass = class_loader.struct
members = o.children.map { |c| accept c }
h = Hash[*members]
s = klass.new(*h.map { |k,v|
class_loader.symbolize k
}).new(*h.map { |k,v| v })
register(o, s)
s
end
when /^!ruby\/object:?(.*)?$/
name = $1 || 'Object'
if name == 'Complex'
class_loader.complex
h = Hash[*o.children.map { |c| accept c }]
register o, Complex(h['real'], h['image'])
elsif name == 'Rational'
class_loader.rational
h = Hash[*o.children.map { |c| accept c }]
register o, Rational(h['numerator'], h['denominator'])
elsif name == 'Hash'
revive_hash(register(o, {}), o)
else
obj = revive((resolve_class(name) || class_loader.object), o)
obj
end
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
members = {}
string = nil
o.children.each_slice(2) do |k,v|
key = accept k
value = accept v
if key == 'str'
if klass
string = klass.allocate.replace value
else
string = value
end
register(o, string)
else
members[key] = value
end
end
init_with(string, members.map { |k,v| [k.to_s.sub(/^@/, ''),v] }, o)
when /^!ruby\/array:(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
members = Hash[o.children.map { |c| accept c }.each_slice(2).to_a]
list.replace members['internal']
members['ivars'].each do |ivar, v|
list.instance_variable_set ivar, v
end
list
when '!ruby/range'
klass = class_loader.range
h = Hash[*o.children.map { |c| accept c }]
register o, klass.new(h['begin'], h['end'], h['excl'])
when /^!ruby\/exception:?(.*)?$/
h = Hash[*o.children.map { |c| accept c }]
e = build_exception((resolve_class($1) || class_loader.exception),
h.delete('message'))
init_with(e, h, o)
when '!set', 'tag:yaml.org,2002:set'
set = class_loader.psych_set.new
@st[o.anchor] = set if o.anchor
o.children.each_slice(2) do |k,v|
set[accept(k)] = accept(v)
end
set
when /^!ruby\/hash-with-ivars(?::(.*))?$/
hash = $1 ? resolve_class($1).allocate : {}
register o, hash
o.children.each_slice(2) do |key, value|
case key.value
when 'elements'
revive_hash hash, value
when 'ivars'
value.children.each_slice(2) do |k,v|
hash.instance_variable_set accept(k), accept(v)
end
end
end
hash
when /^!map:(.*)$/, /^!ruby\/hash:(.*)$/
revive_hash register(o, resolve_class($1).allocate), o
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, class_loader.psych_omap.new)
o.children.each_slice(2) do |l,r|
map[accept(l)] = accept r
end
map
when /^!ruby\/marshalable:(.*)$/
name = $1
klass = resolve_class(name)
obj = register(o, klass.allocate)
if obj.respond_to?(:init_with)
init_with(obj, revive_hash({}, o), o)
elsif obj.respond_to?(:marshal_load)
marshal_data = o.children.map(&method(:accept))
obj.marshal_load(marshal_data)
obj
else
raise ArgumentError, "Cannot deserialize #{name}"
end
else
revive_hash(register(o, {}), o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:335
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
when Nodes::Alias, Nodes::Mapping
begin
hash.merge! val
rescue TypeError
hash[key] = val
end
when Nodes::Sequence
begin
h = {}
val.reverse_each do |value|
h.merge! value
end
hash.merge! h
rescue TypeError
hash[key] = val
end
else
hash[key] = val
end
else
hash[key] = val
end
}
hash
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:158
def visit_Psych_Nodes_Mapping o
if Psych.load_tags[o.tag]
return revive(resolve_class(Psych.load_tags[o.tag]), o)
end
return revive_hash(register(o, {}), o) unless o.tag
case o.tag
when /^!ruby\/struct:?(.*)?$/
klass = resolve_class($1) if $1
if klass
s = register(o, klass.allocate)
members = {}
struct_members = s.members.map { |x| class_loader.symbolize x }
o.children.each_slice(2) do |k,v|
member = accept(k)
value = accept(v)
if struct_members.include?(class_loader.symbolize(member))
s.send("#{member}=", value)
else
members[member.to_s.sub(/^@/, '')] = value
end
end
init_with(s, members, o)
else
klass = class_loader.struct
members = o.children.map { |c| accept c }
h = Hash[*members]
s = klass.new(*h.map { |k,v|
class_loader.symbolize k
}).new(*h.map { |k,v| v })
register(o, s)
s
end
when /^!ruby\/object:?(.*)?$/
name = $1 || 'Object'
if name == 'Complex'
class_loader.complex
h = Hash[*o.children.map { |c| accept c }]
register o, Complex(h['real'], h['image'])
elsif name == 'Rational'
class_loader.rational
h = Hash[*o.children.map { |c| accept c }]
register o, Rational(h['numerator'], h['denominator'])
elsif name == 'Hash'
revive_hash(register(o, {}), o)
else
obj = revive((resolve_class(name) || class_loader.object), o)
obj
end
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
members = {}
string = nil
o.children.each_slice(2) do |k,v|
key = accept k
value = accept v
if key == 'str'
if klass
string = klass.allocate.replace value
else
string = value
end
register(o, string)
else
members[key] = value
end
end
init_with(string, members.map { |k,v| [k.to_s.sub(/^@/, ''),v] }, o)
when /^!ruby\/array:(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
members = Hash[o.children.map { |c| accept c }.each_slice(2).to_a]
list.replace members['internal']
members['ivars'].each do |ivar, v|
list.instance_variable_set ivar, v
end
list
when '!ruby/range'
klass = class_loader.range
h = Hash[*o.children.map { |c| accept c }]
register o, klass.new(h['begin'], h['end'], h['excl'])
when /^!ruby\/exception:?(.*)?$/
h = Hash[*o.children.map { |c| accept c }]
e = build_exception((resolve_class($1) || class_loader.exception),
h.delete('message'))
init_with(e, h, o)
when '!set', 'tag:yaml.org,2002:set'
set = class_loader.psych_set.new
@st[o.anchor] = set if o.anchor
o.children.each_slice(2) do |k,v|
set[accept(k)] = accept(v)
end
set
when /^!ruby\/hash-with-ivars(?::(.*))?$/
hash = $1 ? resolve_class($1).allocate : {}
register o, hash
o.children.each_slice(2) do |key, value|
case key.value
when 'elements'
revive_hash hash, value
when 'ivars'
value.children.each_slice(2) do |k,v|
hash.instance_variable_set accept(k), accept(v)
end
end
end
hash
when /^!map:(.*)$/, /^!ruby\/hash:(.*)$/
revive_hash register(o, resolve_class($1).allocate), o
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, class_loader.psych_omap.new)
o.children.each_slice(2) do |l,r|
map[accept(l)] = accept r
end
map
when /^!ruby\/marshalable:(.*)$/
name = $1
klass = resolve_class(name)
obj = register(o, klass.allocate)
if obj.respond_to?(:init_with)
init_with(obj, revive_hash({}, o), o)
elsif obj.respond_to?(:marshal_load)
marshal_data = o.children.map(&method(:accept))
obj.marshal_load(marshal_data)
obj
else
raise ArgumentError, "Cannot deserialize #{name}"
end
else
revive_hash(register(o, {}), o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:335
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
when Nodes::Alias, Nodes::Mapping
begin
hash.merge! val
rescue TypeError
hash[key] = val
end
when Nodes::Sequence
begin
h = {}
val.reverse_each do |value|
h.merge! value
end
hash.merge! h
rescue TypeError
hash[key] = val
end
else
hash[key] = val
end
else
hash[key] = val
end
}
hash
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:158
def visit_Psych_Nodes_Mapping o
if Psych.load_tags[o.tag]
return revive(resolve_class(Psych.load_tags[o.tag]), o)
end
return revive_hash(register(o, {}), o) unless o.tag
case o.tag
when /^!ruby\/struct:?(.*)?$/
klass = resolve_class($1) if $1
if klass
s = register(o, klass.allocate)
members = {}
struct_members = s.members.map { |x| class_loader.symbolize x }
o.children.each_slice(2) do |k,v|
member = accept(k)
value = accept(v)
if struct_members.include?(class_loader.symbolize(member))
s.send("#{member}=", value)
else
members[member.to_s.sub(/^@/, '')] = value
end
end
init_with(s, members, o)
else
klass = class_loader.struct
members = o.children.map { |c| accept c }
h = Hash[*members]
s = klass.new(*h.map { |k,v|
class_loader.symbolize k
}).new(*h.map { |k,v| v })
register(o, s)
s
end
when /^!ruby\/object:?(.*)?$/
name = $1 || 'Object'
if name == 'Complex'
class_loader.complex
h = Hash[*o.children.map { |c| accept c }]
register o, Complex(h['real'], h['image'])
elsif name == 'Rational'
class_loader.rational
h = Hash[*o.children.map { |c| accept c }]
register o, Rational(h['numerator'], h['denominator'])
elsif name == 'Hash'
revive_hash(register(o, {}), o)
else
obj = revive((resolve_class(name) || class_loader.object), o)
obj
end
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
members = {}
string = nil
o.children.each_slice(2) do |k,v|
key = accept k
value = accept v
if key == 'str'
if klass
string = klass.allocate.replace value
else
string = value
end
register(o, string)
else
members[key] = value
end
end
init_with(string, members.map { |k,v| [k.to_s.sub(/^@/, ''),v] }, o)
when /^!ruby\/array:(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
members = Hash[o.children.map { |c| accept c }.each_slice(2).to_a]
list.replace members['internal']
members['ivars'].each do |ivar, v|
list.instance_variable_set ivar, v
end
list
when '!ruby/range'
klass = class_loader.range
h = Hash[*o.children.map { |c| accept c }]
register o, klass.new(h['begin'], h['end'], h['excl'])
when /^!ruby\/exception:?(.*)?$/
h = Hash[*o.children.map { |c| accept c }]
e = build_exception((resolve_class($1) || class_loader.exception),
h.delete('message'))
init_with(e, h, o)
when '!set', 'tag:yaml.org,2002:set'
set = class_loader.psych_set.new
@st[o.anchor] = set if o.anchor
o.children.each_slice(2) do |k,v|
set[accept(k)] = accept(v)
end
set
when /^!ruby\/hash-with-ivars(?::(.*))?$/
hash = $1 ? resolve_class($1).allocate : {}
register o, hash
o.children.each_slice(2) do |key, value|
case key.value
when 'elements'
revive_hash hash, value
when 'ivars'
value.children.each_slice(2) do |k,v|
hash.instance_variable_set accept(k), accept(v)
end
end
end
hash
when /^!map:(.*)$/, /^!ruby\/hash:(.*)$/
revive_hash register(o, resolve_class($1).allocate), o
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, class_loader.psych_omap.new)
o.children.each_slice(2) do |l,r|
map[accept(l)] = accept r
end
map
when /^!ruby\/marshalable:(.*)$/
name = $1
klass = resolve_class(name)
obj = register(o, klass.allocate)
if obj.respond_to?(:init_with)
init_with(obj, revive_hash({}, o), o)
elsif obj.respond_to?(:marshal_load)
marshal_data = o.children.map(&method(:accept))
obj.marshal_load(marshal_data)
obj
else
raise ArgumentError, "Cannot deserialize #{name}"
end
else
revive_hash(register(o, {}), o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:335
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
when Nodes::Alias, Nodes::Mapping
begin
hash.merge! val
rescue TypeError
hash[key] = val
end
when Nodes::Sequence
begin
h = {}
val.reverse_each do |value|
h.merge! value
end
hash.merge! h
rescue TypeError
hash[key] = val
end
else
hash[key] = val
end
else
hash[key] = val
end
}
hash
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:162
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:126
def visit_Psych_Nodes_Sequence o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.seq = o.children.map { |c| accept c }
instance.init_with coder
end
return instance
end
case o.tag
when nil
register_empty(o)
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, Psych::Omap.new)
o.children.each { |a|
map[accept(a.children.first)] = accept a.children.last
}
map
when /^!(?:seq|ruby\/array):(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
o.children.each { |c| list.push accept c }
list
else
register_empty(o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:127
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:328
def register_empty object
list = register(object, [])
object.children.each { |c| list.push accept c }
list
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:141
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:329
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:126
def visit_Psych_Nodes_Sequence o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.seq = o.children.map { |c| accept c }
instance.init_with coder
end
return instance
end
case o.tag
when nil
register_empty(o)
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, Psych::Omap.new)
o.children.each { |a|
map[accept(a.children.first)] = accept a.children.last
}
map
when /^!(?:seq|ruby\/array):(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
o.children.each { |c| list.push accept c }
list
else
register_empty(o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:127
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:328
def register_empty object
list = register(object, [])
object.children.each { |c| list.push accept c }
list
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:141
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:329
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:126
def visit_Psych_Nodes_Sequence o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.seq = o.children.map { |c| accept c }
instance.init_with coder
end
return instance
end
case o.tag
when nil
register_empty(o)
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, Psych::Omap.new)
o.children.each { |a|
map[accept(a.children.first)] = accept a.children.last
}
map
when /^!(?:seq|ruby\/array):(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
o.children.each { |c| list.push accept c }
list
else
register_empty(o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:127
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:328
def register_empty object
list = register(object, [])
object.children.each { |c| list.push accept c }
list
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:141
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:329
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:337
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:338
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:126
def visit_Psych_Nodes_Sequence o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.seq = o.children.map { |c| accept c }
instance.init_with coder
end
return instance
end
case o.tag
when nil
register_empty(o)
when '!omap', 'tag:yaml.org,2002:omap'
map = register(o, Psych::Omap.new)
o.children.each { |a|
map[accept(a.children.first)] = accept a.children.last
}
map
when /^!(?:seq|ruby\/array):(.*)$/
klass = resolve_class($1)
list = register(o, klass.allocate)
o.children.each { |c| list.push accept c }
list
else
register_empty(o)
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:127
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:328
def register_empty object
list = register(object, [])
object.children.each { |c| list.push accept c }
list
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:141
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:329
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:31
def accept target
result = super
return result if @domain_types.empty? || !target.tag
key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
key = "tag:#{key}" unless key =~ /^(?:tag:|x-private)/
if @domain_types.key? key
value, block = @domain_types[key]
return block.call value, result
end
result
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:330
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:5
def accept target
visit target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:32
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:15
def visit target
send DISPATCH[target.class], target
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:6
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:122
def visit_Psych_Nodes_Scalar o
register o, deserialize(o)
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/visitor.rb:16
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:46
def deserialize o
if klass = resolve_class(Psych.load_tags[o.tag])
instance = klass.allocate
if instance.respond_to?(:init_with)
coder = Psych::Coder.new(o.tag)
coder.scalar = o.value
instance.init_with coder
end
return instance
end
return o.value if o.quoted
return @ss.tokenize(o.value) unless o.tag
case o.tag
when '!binary', 'tag:yaml.org,2002:binary'
o.value.unpack('m').first
when /^!(?:str|ruby\/string)(?::(.*))?$/, 'tag:yaml.org,2002:str'
klass = resolve_class($1)
if klass
klass.allocate.replace o.value
else
o.value
end
when '!ruby/object:BigDecimal'
require 'bigdecimal' unless defined? BigDecimal
class_loader.big_decimal._load o.value
when "!ruby/object:DateTime"
class_loader.date_time
require 'date' unless defined? DateTime
@ss.parse_time(o.value).to_datetime
when '!ruby/encoding'
::Encoding.find o.value
when "!ruby/object:Complex"
class_loader.complex
Complex(o.value)
when "!ruby/object:Rational"
class_loader.rational
Rational(o.value)
when "!ruby/class", "!ruby/module"
resolve_class o.value
when "tag:yaml.org,2002:float", "!float"
Float(@ss.tokenize(o.value))
when "!ruby/regexp"
klass = class_loader.regexp
o.value =~ /^\/(.*)\/([mixn]*)$/m
source = $1
options = 0
lang = nil
($2 || '').split('').each do |option|
case option
when 'x' then options |= Regexp::EXTENDED
when 'i' then options |= Regexp::IGNORECASE
when 'm' then options |= Regexp::MULTILINE
when 'n' then options |= Regexp::NOENCODING
else lang = option
end
end
klass.new(*[source, options, lang].compact)
when "!ruby/range"
klass = class_loader.range
args = o.value.split(/([.]{2,3})/, 2).map { |s|
accept Nodes::Scalar.new(s)
}
args.push(args.delete_at(1) == '...')
klass.new(*args)
when /^!ruby\/sym(bol)?:?(.*)?$/
class_loader.symbolize o.value
else
@ss.tokenize o.value
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:390
def resolve_class klassname
class_loader.load klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:47
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/class_loader.rb:25
def load klassname
return nil if !klassname || klassname.empty?
find klassname
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:391
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/scalar_scanner.rb:32
def tokenize string
return nil if string.empty?
return string if @string_cache.key?(string)
return @symbol_cache[string] if @symbol_cache.key?(string)
case string
# Check for a String type, being careful not to get caught by hash keys, hex values, and
# special floats (e.g., -.inf).
when /^[^\d\.:-]?[A-Za-z_\s!@#\$%\^&\*\(\)\{\}\<\>\|\/\\~;=]+/, /\n/
if string.length > 5
@string_cache[string] = true
return string
end
case string
when /^[^ytonf~]/i
@string_cache[string] = true
string
when '~', /^null$/i
nil
when /^(yes|true|on)$/i
true
when /^(no|false|off)$/i
false
else
@string_cache[string] = true
string
end
when TIME
begin
parse_time string
rescue ArgumentError
string
end
when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
require 'date'
begin
class_loader.date.strptime(string, '%Y-%m-%d')
rescue ArgumentError
string
end
when /^\.inf$/i
Float::INFINITY
when /^-\.inf$/i
-Float::INFINITY
when /^\.nan$/i
Float::NAN
when /^:./
if string =~ /^:(["'])(.*)\1/
@symbol_cache[string] = class_loader.symbolize($2.sub(/^:/, ''))
else
@symbol_cache[string] = class_loader.symbolize(string.sub(/^:/, ''))
end
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_i * 60 ** (e - 2).abs)
end
i
when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9]){1,2}\.[0-9_]*$/
i = 0
string.split(':').each_with_index do |n,e|
i += (n.to_f * 60 ** (e - 2).abs)
end
i
when FLOAT
if string =~ /\A[-+]?\.\Z/
@string_cache[string] = true
string
else
Float(string.gsub(/[,_]|\.([Ee]|$)/, '\1'))
end
else
int = parse_int string.gsub(/[,_]/, '')
return int if int
@string_cache[string] = true
string
end
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:60
/Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:323
def register node, object
@st[node.anchor] = object if node.anchor
object
end
# called from /Users/yhirano/.rbenv/versions/2.6.3/lib/ruby/2.6.0/psych/visitors/to_ruby.rb:123