Sha256: 0b26c63f2d2e6c9c3aecc04b38650a4903f09feee655e62f6e80abdf6a8a6f94

Contents?: true

Size: 238 Bytes

Versions: 7

Compression:

Stored size: 238 Bytes

Contents

module EfoNelfo

  module AttributeAssignment
    def initialize_attributes(*args)
      if args && args.first.is_a?(Hash)
        args.first.each do |attr, value|
          send "#{attr}=", value
        end
      end
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
efo_nelfo-0.0.7 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.6 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.5 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.4 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.3 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.2 lib/efo_nelfo/attribute_assignment.rb
efo_nelfo-0.0.1 lib/efo_nelfo/attribute_assignment.rb