Method: Masks::Configuration#masks
- Defined in:
- lib/masks/configuration.rb
#masks ⇒ Array<Masks::Mask>
Returns all configured masks.
168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/masks/configuration.rb', line 168 def masks @masks ||= begin masks = super || data.fetch(:masks, []) masks.map do |opts| case opts when Masks::Mask opts when Hash Masks::Mask.new(opts.merge(config: self)) end end end end |