Sha256: 37d9b786b55b27198efabc28fb7d928f209f36eaf5bcb935797fbfbc7e977bb0
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
module Quicken class Foundation def self.accessors_for_spec(spec) spec.each do |key, item| instance_eval do attr_accessor key.to_sym end end end def initialize(attrs={}) attrs.each do |key, value| begin send("#{key}=", value) rescue next end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quicken-0.0.3 | lib/quicken/foundation.rb |
quicken-0.0.2 | lib/quicken/foundation.rb |
quicken-0.0.1 | lib/quicken/foundation.rb |