Sha256: 099b12d4bcf7d2a318157b1aba40f9cee8188f78f6658f05e732776b41112ba9
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
require 'albacore/support/attrmethods' require 'albacore/support/failure' require 'albacore/support/logging' require 'albacore/support/yamlconfig' require 'albacore/support/runcommand' require 'albacore/config/config' module AlbacoreModel include Failure include Logging include YAMLConfig def self.included(obj) obj.extend AttrMethods end def update_attributes(attrs) attrs.each do |key, value| setter = "#{key}=" send(setter, value) if respond_to?(setter) @logger.warn "#{key} is not a settable attribute on #{self.class}" unless respond_to?(setter) end end def <<(attrs) update_attributes attrs end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
albacore-0.2.0.preview1 | lib/albacore/albacoremodel.rb |