Module: Hashie::Extensions::Dash::IndifferentAccess::ClassMethods

### Home Classes Methods

### In Files

- lib/hashie/extensions/dash/indifferent_access.rb

### Methods

- #property?
- #transformation_exists?
- #transformed_property
- #translation_exists?

### Class/Module Index

Quicksearch

- Hashie
- Hashie::Clash
- Hashie::Clash::ChainError
- Hashie::CoercionError
- Hashie::Dash
- Hashie::Extensions
- Hashie::Extensions::Coercion
- Hashie::Extensions::Coercion::ClassMethods
- Hashie::Extensions::Coercion::InstanceMethods
- Hashie::Extensions::Dash
- Hashie::Extensions::Dash::IndifferentAccess
- Hashie::Extensions::Dash::IndifferentAccess::ClassMethods
- Hashie::Extensions::DeepFetch
- Hashie::Extensions::DeepFetch::UndefinedPathError
- Hashie::Extensions::DeepFind
- Hashie::Extensions::DeepMerge
- Hashie::Extensions::IgnoreUndeclared
- Hashie::Extensions::IndifferentAccess
- Hashie::Extensions::KeyConversion
- Hashie::Extensions::Mash
- Hashie::Extensions::Mash::SafeAssignment
- Hashie::Extensions::MergeInitializer
- Hashie::Extensions::MethodAccess
- Hashie::Extensions::MethodAccessWithOverride
- Hashie::Extensions::MethodOverridingWriter
- Hashie::Extensions::MethodQuery
- Hashie::Extensions::MethodReader
- Hashie::Extensions::MethodWriter
- Hashie::Extensions::Parsers
- Hashie::Extensions::Parsers::YamlErbParser
- Hashie::Extensions::PrettyInspect
- Hashie::Extensions::StringifyKeys
- Hashie::Extensions::StringifyKeys::ClassMethods
- Hashie::Extensions::SymbolizeKeys
- Hashie::Extensions::SymbolizeKeys::ClassMethods
- Hashie::Hash
- Hashie::Mash
- Hashie::Rash
- Hashie::Trash

No matching classes.

# Hashie::Extensions::Dash::IndifferentAccess::ClassMethods

### Public Instance Methods

property?(name) click to toggle source

Check to see if the specified property has already been defined.

    # File lib/hashie/extensions/dash/indifferent_access.rb, line 13
    def property?(name)
      name = name.to_s
      !!properties.find { |property| property.to_s == name }
    end

transformation_exists?(name) click to toggle source

    # File lib/hashie/extensions/dash/indifferent_access.rb, line 28
    def transformation_exists?(name)
      name = name.to_s
      !!transforms.keys.find { |key| key.to_s == name }
    end

transformed_property(property_name, value) click to toggle source

    # File lib/hashie/extensions/dash/indifferent_access.rb, line 23
    def transformed_property(property_name, value)
      transform = transforms[property_name] || transforms[:"#{property_name}"]
      transform.call(value)
    end

translation_exists?(name) click to toggle source

    # File lib/hashie/extensions/dash/indifferent_access.rb, line 18
    def translation_exists?(name)
      name = name.to_s
      !!translations.keys.find { |key| key.to_s == name }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.