Sha256: 87b2f526ddd72382cdbeb6e511d4b4d95bb7f9e440ee78fa0b0f463fdce5afdf

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

class Object
  def convert(&converter)
    converter.call(self)
  end
  
  def return_self
    self
  end
  
  alias_method :convert_values_recursively, :convert
  alias_method :convert_recursively, :convert
  
  alias_method :convert_keys_recursively, :return_self
  alias_method :symbolize_keys_recursively, :return_self
  alias_method :stringify_values_recursively, :return_self
  alias_method :make_indifferent_access_recursively, :return_self
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_core_extensions-0.0.1 lib/ruby_core_extensions/recursive/object.rb