Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2_4_6) is shown here.
find_ivars(target, is_primitive=false)private
FIXME: remove this method once “to_yaml_properties” is removed
# File ext/psych/lib/psych/visitors/yaml_tree.rb, line 531
def find_ivars target, is_primitive=false
begin
loc = target.method(:to_yaml_properties).source_location.first
unless loc.start_with?(Psych::DEPRECATED) || loc.end_with?('rubytypes.rb')
if $VERBOSE
warn "#{loc}: to_yaml_properties is deprecated, please implement \"encode_with(coder)\""
end
return target.to_yaml_properties
end
rescue
# public_method or source_location might be overridden,
# and it's OK to skip it since it's only to emit a warning.
end
is_primitive ? [] : target.instance_variables
end Related methods
- Instance methods
- <<
- accept
- finish
- push
- start
- tree
- visit_Array
- visit_BasicObject
- visit_BigDecimal
- visit_Class
- visit_Complex
- visit_Date
- visit_DateTime
- visit_Encoding
- visit_Exception
- visit_FalseClass
- visit_Float
- visit_Hash
- visit_Integer
- visit_Module
- visit_NameError
- visit_NilClass
- visit_Object
- visit_Psych_Omap
- visit_Psych_Set
- visit_Range
- visit_Rational
- visit_Regexp
- visit_String
- visit_Struct
- visit_Symbol
- visit_Time
- visit_TrueClass
- Class methods
- create
- new
- new
- Private methods
-
binary? -
dump_coder -
dump_ivars -
dump_list -
emit_coder -
find_ivars -
format_time -
register -
visit_array_subclass -
visit_hash_subclass