Method: Brief::Model::ClassMethods#template_body

Defined in:
lib/brief/model.rb

#template_body(*args) ⇒ Object



218
219
220
221
# File 'lib/brief/model.rb', line 218

def template_body(*args)
  res = definition.send(:template_body, *args)
  res.to_s.length == 0 ? example_body : res.to_s.strip
end