Sha256: 8b799c840a2d2e2dff12821f43fa838927c9d5809d78ccd1d8f13e1bfae36732

Contents?: true

Size: 226 Bytes

Versions: 31

Compression:

Stored size: 226 Bytes

Contents

class Gillbus
  module UpdateAttrs

    def initialize(attrs={})
      update_attrs attrs if attrs
    end

    def update_attrs(attrs={})
      attrs.each do |k, v|
        public_send "#{k}=", v
      end
    end

  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
gillbus-0.16.7 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.6 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.5 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.4 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.3 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.2 lib/gillbus/helpers/update_attrs.rb
gillbus-0.16.1 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.7 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.6 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.5 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.4 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.3 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.2 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.1 lib/gillbus/helpers/update_attrs.rb
gillbus-0.15.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.12 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.11 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.10 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.9 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.8 lib/gillbus/helpers/update_attrs.rb