Class: Plum::ContentSource
- Inherits:
-
Object
- Object
- Plum::ContentSource
- Defined in:
- lib/plum/content_source.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ ContentSource
constructor
A new instance of ContentSource.
- #to_liquid ⇒ Object
Constructor Details
#initialize(context) ⇒ ContentSource
Returns a new instance of ContentSource.
7 8 9 |
# File 'lib/plum/content_source.rb', line 7 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/plum/content_source.rb', line 5 def context @context end |
Instance Method Details
#to_liquid ⇒ Object
11 12 13 |
# File 'lib/plum/content_source.rb', line 11 def to_liquid raise ContentSourceError, "#{self.class.name} must implement #to_liquid" end |