Class: MagicLamp::Configuration
- Inherits:
-
Object
- Object
- MagicLamp::Configuration
- Defined in:
- lib/magic_lamp/configuration.rb
Instance Attribute Summary collapse
-
#after_each_proc ⇒ Object
Returns the value of attribute after_each_proc.
-
#before_each_proc ⇒ Object
Returns the value of attribute before_each_proc.
-
#global_defaults ⇒ Object
Returns the value of attribute global_defaults.
-
#infer_names ⇒ Object
Returns the value of attribute infer_names.
Instance Method Summary collapse
- #after_each(&block) ⇒ Object
- #before_each(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/magic_lamp/configuration.rb', line 7 def initialize self.infer_names = true self.global_defaults = {} end |
Instance Attribute Details
#after_each_proc ⇒ Object
Returns the value of attribute after_each_proc.
5 6 7 |
# File 'lib/magic_lamp/configuration.rb', line 5 def after_each_proc @after_each_proc end |
#before_each_proc ⇒ Object
Returns the value of attribute before_each_proc.
5 6 7 |
# File 'lib/magic_lamp/configuration.rb', line 5 def before_each_proc @before_each_proc end |
#global_defaults ⇒ Object
Returns the value of attribute global_defaults.
5 6 7 |
# File 'lib/magic_lamp/configuration.rb', line 5 def global_defaults @global_defaults end |
#infer_names ⇒ Object
Returns the value of attribute infer_names.
5 6 7 |
# File 'lib/magic_lamp/configuration.rb', line 5 def infer_names @infer_names end |
Instance Method Details
#after_each(&block) ⇒ Object
16 17 18 |
# File 'lib/magic_lamp/configuration.rb', line 16 def after_each(&block) register_callback(:after, block) end |
#before_each(&block) ⇒ Object
12 13 14 |
# File 'lib/magic_lamp/configuration.rb', line 12 def before_each(&block) register_callback(:before, block) end |