Class: Inch::Config::Base
- Inherits:
-
Object
- Object
- Inch::Config::Base
- Defined in:
- lib/inch/config/base.rb
Defined Under Namespace
Classes: Evaluation
Instance Method Summary collapse
- #codebase(&block) ⇒ Object
- #development! ⇒ Object
- #development? ⇒ Boolean
- #evaluation(&block) ⇒ Object
- #update(&block) ⇒ Object
Instance Method Details
#codebase(&block) ⇒ Object
20 21 22 23 24 |
# File 'lib/inch/config/base.rb', line 20 def codebase(&block) @codebase ||= Config::Codebase.new @codebase.update(&block) if block @codebase end |
#development! ⇒ Object
16 17 18 |
# File 'lib/inch/config/base.rb', line 16 def development! @development = true end |
#development? ⇒ Boolean
12 13 14 |
# File 'lib/inch/config/base.rb', line 12 def development? @development end |
#evaluation(&block) ⇒ Object
26 27 28 29 30 |
# File 'lib/inch/config/base.rb', line 26 def evaluation(&block) @evaluation ||= Evaluation.new @evaluation.update(&block) if block @evaluation end |
#update(&block) ⇒ Object
8 9 10 |
# File 'lib/inch/config/base.rb', line 8 def update(&block) instance_eval(&block) end |