Sha256: bfd329f6f03a5e554b7143ae335f2da8e3dece3043af6b85e11d65d93e73dc33
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
class ComponentList def components @components ||= [] end class << self def from_hashes(hashes) @component_list = ComponentList.new hashes.each { |comp_hash| @component_list.components << Component.new(comp_hash)} @component_list end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
styleus-0.0.3 | app/models/component_list.rb |