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.14.7 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.6 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.5 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.4 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.3 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.2 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.1 lib/gillbus/helpers/update_attrs.rb
gillbus-0.14.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.13.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.12.0 lib/gillbus/helpers/update_attrs.rb
gillbus-0.11.0 lib/gillbus/helpers/update_attrs.rb