Class: Polygon::Content
- Inherits:
-
Object
- Object
- Polygon::Content
- Defined in:
- lib/polygon/content.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
-
#loader ⇒ Object
readonly
Underlying content loader.
-
#path ⇒ Object
readonly
Root of the content folders.
Instance Method Summary collapse
- #entry(path) ⇒ Object
-
#initialize(path, loader = Polygon.default_loader) ⇒ Content
constructor
Creates a Content instance.
Constructor Details
#initialize(path, loader = Polygon.default_loader) ⇒ Content
Creates a Content instance
13 14 15 16 |
# File 'lib/polygon/content.rb', line 13 def initialize(path, loader = Polygon.default_loader) @path = path @loader = loader end |
Instance Attribute Details
#loader ⇒ Object (readonly)
Underlying content loader
10 11 12 |
# File 'lib/polygon/content.rb', line 10 def loader @loader end |
#path ⇒ Object (readonly)
Root of the content folders
7 8 9 |
# File 'lib/polygon/content.rb', line 7 def path @path end |