Class: Flickry::Sizes
- Inherits:
-
Base
- Object
- OpenStruct
- SuperStruct
- Base
- Flickry::Sizes
- Defined in:
- lib/flickry/sizes.rb
Instance Method Summary collapse
-
#initialize(szs) ⇒ Sizes
constructor
A new instance of Sizes.
Methods inherited from Base
Methods inherited from SuperStruct
#[], #[]=, #each, #each_pair, #members
Constructor Details
#initialize(szs) ⇒ Sizes
Returns a new instance of Sizes.
3 4 5 6 7 8 |
# File 'lib/flickry/sizes.rb', line 3 def initialize(szs) super(nil) szs.each do |sz| self[sz.label.downcase.to_sym] = Flickry::Size.new(sz) end end |