Method: Brief::Model::Definition#example
- Defined in:
- lib/brief/model/definition.rb
#example(body = nil, _options = {}) ⇒ Object
104 105 106 107 108 109 110 |
# File 'lib/brief/model/definition.rb', line 104 def example(body = nil, = {}) if body.is_a?(Hash) = body elsif body.is_a?(String) self.example_body = body end end |