Module: Ping
- Defined in:
- lib/ping/config.rb,
lib/ping/parser.rb,
lib/ping/mention.rb,
lib/ping/version.rb,
lib/ping/issue_reference.rb
Defined Under Namespace
Classes: Config, IssueReference, Mention, Parser
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
-
.reset ⇒ Object
Here we are implementing a reset method because for global values like this, it’s best to clean up before/after each spec to ensure the system is back to a default state.
Class Method Details
.config ⇒ Object
9 10 11 |
# File 'lib/ping/config.rb', line 9 def config @config ||= Config.new end |
.configure {|config| ... } ⇒ Object
5 6 7 |
# File 'lib/ping/config.rb', line 5 def configure yield config end |
.reset ⇒ Object
Here we are implementing a reset method because for global values like this, it’s best to clean up before/after each spec to ensure the system is back to a default state.
16 17 18 |
# File 'lib/ping/config.rb', line 16 def reset @config = Config.new end |