Class: SnowyOwl::Config
- Inherits:
-
Object
- Object
- SnowyOwl::Config
- Defined in:
- lib/snowy_owl/rspec.rb,
lib/snowy_owl/config.rb
Constant Summary collapse
- OPTIONS =
i[ props_path determine_context determinations_path play_books_path is_persisting is_recovering persist_path plots_path persist_callback recover_callback spec_file ].freeze
Instance Attribute Summary collapse
-
#determinations_path ⇒ Object
Returns the value of attribute determinations_path.
-
#is_persisting ⇒ Object
Returns the value of attribute is_persisting.
-
#is_recovering ⇒ Object
Returns the value of attribute is_recovering.
-
#persist_path ⇒ Object
Returns the value of attribute persist_path.
-
#play_books_path ⇒ Object
Returns the value of attribute play_books_path.
-
#plots_path ⇒ Object
Returns the value of attribute plots_path.
-
#props_path ⇒ Object
Returns the value of attribute props_path.
-
#spec_file ⇒ Object
Returns the value of attribute spec_file.
Instance Method Summary collapse
- #determine_context(key, &determine_block) ⇒ Object
- #persist_callback(&block) ⇒ Object
- #recover_callback(&block) ⇒ Object
Instance Attribute Details
#determinations_path ⇒ Object
Returns the value of attribute determinations_path.
17 18 19 |
# File 'lib/snowy_owl/config.rb', line 17 def determinations_path @determinations_path end |
#is_persisting ⇒ Object
Returns the value of attribute is_persisting.
18 19 20 |
# File 'lib/snowy_owl/config.rb', line 18 def is_persisting @is_persisting end |
#is_recovering ⇒ Object
Returns the value of attribute is_recovering.
18 19 20 |
# File 'lib/snowy_owl/config.rb', line 18 def is_recovering @is_recovering end |
#persist_path ⇒ Object
Returns the value of attribute persist_path.
18 19 20 |
# File 'lib/snowy_owl/config.rb', line 18 def persist_path @persist_path end |
#play_books_path ⇒ Object
Returns the value of attribute play_books_path.
17 18 19 |
# File 'lib/snowy_owl/config.rb', line 17 def play_books_path @play_books_path end |
#plots_path ⇒ Object
Returns the value of attribute plots_path.
18 19 20 |
# File 'lib/snowy_owl/config.rb', line 18 def plots_path @plots_path end |
#props_path ⇒ Object
Returns the value of attribute props_path.
17 18 19 |
# File 'lib/snowy_owl/config.rb', line 17 def props_path @props_path end |
#spec_file ⇒ Object
Returns the value of attribute spec_file.
10 11 12 |
# File 'lib/snowy_owl/rspec.rb', line 10 def spec_file @spec_file end |
Instance Method Details
#determine_context(key, &determine_block) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/snowy_owl/config.rb', line 21 def determine_context(key, &determine_block) @determine_context ||= {} if block_given? @determine_context[key] = determine_block else @determine_context[key] end end |
#persist_callback(&block) ⇒ Object
30 31 32 |
# File 'lib/snowy_owl/config.rb', line 30 def persist_callback(&block) @persist_callback = block || @persist_callback end |
#recover_callback(&block) ⇒ Object
34 35 36 |
# File 'lib/snowy_owl/config.rb', line 34 def recover_callback(&block) @recover_callback = block || @recover_callback end |