Class: Utopia::Gallery::Container
- Inherits:
-
Object
- Object
- Utopia::Gallery::Container
- Includes:
- Enumerable
- Defined in:
- lib/utopia/gallery/container.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(root, path, filter: /(jpe?g|png)$/i) ⇒ Container
constructor
A new instance of Container.
Constructor Details
Instance Attribute Details
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
38 39 40 |
# File 'lib/utopia/gallery/container.rb', line 38 def filter @filter end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
37 38 39 |
# File 'lib/utopia/gallery/container.rb', line 37 def path @path end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
36 37 38 |
# File 'lib/utopia/gallery/container.rb', line 36 def root @root end |