http://yardoc.org
YARD CHEATSHEETcribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
{ | |
"status": 500, | |
"error": "Internal Server Error", | |
"exception": "#<NoMethodError: undefined method `to' for nil:NilClass>", | |
"traces": { | |
"Application Trace": [ | |
{ | |
"exception_object_id": 18180, | |
"id": 2, | |
"trace": "app/controllers/graphql_controller.rb:6:in `block in <class:GraphqlController>'" |
import logging | |
class LogTestCase(TestCase): | |
@pytest.fixture(autouse=True) | |
def inject_fixtures(self, caplog): | |
self._caplog = caplog | |
def test_loggin(self): | |
# do stuff |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
local_variables instance_variables
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionI hereby claim:
To claim this, I am signing this object: