Class: Pokey::Configuration
- Inherits:
-
Object
- Object
- Pokey::Configuration
- Defined in:
- lib/pokey/configuration.rb
Instance Attribute Summary collapse
-
#hook_dir ⇒ Object
Returns the value of attribute hook_dir.
-
#hooks ⇒ Object
Returns the value of attribute hooks.
-
#run_on ⇒ Object
Returns the value of attribute run_on.
Instance Method Summary collapse
- #add_hook(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 |
# File 'lib/pokey/configuration.rb', line 4 def initialize @hook_dir = "app/pokey" @hooks = [] @run_on = [:development] end |
Instance Attribute Details
#hook_dir ⇒ Object
Returns the value of attribute hook_dir.
2 3 4 |
# File 'lib/pokey/configuration.rb', line 2 def hook_dir @hook_dir end |
#hooks ⇒ Object
Returns the value of attribute hooks.
2 3 4 |
# File 'lib/pokey/configuration.rb', line 2 def hooks @hooks end |
#run_on ⇒ Object
Returns the value of attribute run_on.
2 3 4 |
# File 'lib/pokey/configuration.rb', line 2 def run_on @run_on end |