Class: Jekyll::Fridge::Model
- Inherits:
-
Object
- Object
- Jekyll::Fridge::Model
- Defined in:
- lib/jekyll-fridge.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ Model
constructor
A new instance of Model.
- #inspect ⇒ Object
- #to_liquid ⇒ Object
Constructor Details
#initialize(model) ⇒ Model
Returns a new instance of Model.
167 168 169 |
# File 'lib/jekyll-fridge.rb', line 167 def initialize(model) @model = model end |
Instance Method Details
#inspect ⇒ Object
171 172 173 |
# File 'lib/jekyll-fridge.rb', line 171 def inspect @data end |
#to_liquid ⇒ Object
175 176 177 |
# File 'lib/jekyll-fridge.rb', line 175 def to_liquid @data ||= Jekyll::Fridge.stringify_keys_deep(@model.attrs) end |