Class: Media::Filter::Chain
- Inherits:
-
Object
- Object
- Media::Filter::Chain
- Defined in:
- lib/media/filter/chain.rb
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
Instance Method Summary collapse
-
#initialize(args = {}, &blk) ⇒ Chain
constructor
A new instance of Chain.
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}, &blk) ⇒ Chain
Returns a new instance of Chain.
6 7 8 |
# File 'lib/media/filter/chain.rb', line 6 def initialize(args={}, &blk) @filters = args.fetch(:filters, []) end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
4 5 6 |
# File 'lib/media/filter/chain.rb', line 4 def filters @filters end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/media/filter/chain.rb', line 10 def to_s filters.join(', ') end |