Method: LabClient::Docs#example
- Defined in:
- lib/labclient/docs.rb
#example(value) ⇒ Object
66 67 68 69 |
# File 'lib/labclient/docs.rb', line 66 def example(value) # Ensure there is a new line for the markdown and no extras @result[:example] = value.ends_with?("\n") ? value : "#{value}\n" end |