Method: Xhive::LiquidWrapper.liquify
- Defined in:
- lib/xhive/liquid_wrapper.rb
.liquify(object) ⇒ Object
Public: builds a liquid wrapper around the object.
object - The object to wrap.
Returns: the same object (if it is already liquified) or a liquid wrapper.
34 35 36 |
# File 'lib/xhive/liquid_wrapper.rb', line 34 def self.liquify(object) object.respond_to?(:to_liquid) ? object : new(object) end |