Method: Xhive::LiquidWrapper#to_liquid
- Defined in:
- lib/xhive/liquid_wrapper.rb
#to_liquid ⇒ Object
Public: liquid interface.
Returns: object attributes or an empty Array.
12 13 14 |
# File 'lib/xhive/liquid_wrapper.rb', line 12 def to_liquid @object.respond_to?(:attributes) ? @object.attributes : [] end |