Class: Object

Inherits:
BasicObject
Defined in:
lib/handlebarer/serialize.rb

Instance Method Summary collapse

Instance Method Details

#to_hbsObject

Serialize Object to Jade format. Invoke ‘self.to_hbs` if instance responds to `to_hbs`



71
72
73
74
75
76
77
# File 'lib/handlebarer/serialize.rb', line 71

def to_hbs
  if self.respond_to? :to_a
    self.to_a.to_hbs
  else
    nil
  end
end