Class: WhatTheGem::Usage
- Defined in:
- lib/whatthegem/usage.rb,
lib/whatthegem/usage/extractor.rb
Overview
TODO use Piotr’s markdown formatter
friendly report of “usage instructions not found”
If gem not found locally – fetch from GitHub
Defined Under Namespace
Classes: Extractor
Constant Summary collapse
- TEMPLATE =
Template.parse(<<~USAGE) {% for u in usage %} {{ u.body | rouge }} {% endfor %} USAGE
- README_NOT_FOUND =
I::Pastel.red.bold("Can't find `README` locally or in repo to extract usage.")
Constants inherited from Command
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
call, #call, get, #initialize, #meta, register
Constructor Details
This class inherits a constructor from WhatTheGem::Command