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.
5 6 7 8 |
# File 'lib/magic_lamp/configuration.rb', line 5 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.
3 4 5 |
# File 'lib/magic_lamp/configuration.rb', line 3 def after_each_proc @after_each_proc end |
#before_each_proc ⇒ Object
Returns the value of attribute before_each_proc.
3 4 5 |
# File 'lib/magic_lamp/configuration.rb', line 3 def before_each_proc @before_each_proc end |
#global_defaults ⇒ Object
Returns the value of attribute global_defaults.
3 4 5 |
# File 'lib/magic_lamp/configuration.rb', line 3 def global_defaults @global_defaults end |
#infer_names ⇒ Object
Returns the value of attribute infer_names.
3 4 5 |
# File 'lib/magic_lamp/configuration.rb', line 3 def infer_names @infer_names end |
Instance Method Details
#after_each(&block) ⇒ Object
14 15 16 |
# File 'lib/magic_lamp/configuration.rb', line 14 def after_each(&block) register_callback(:after, block) end |
#before_each(&block) ⇒ Object
10 11 12 |
# File 'lib/magic_lamp/configuration.rb', line 10 def before_each(&block) register_callback(:before, block) end |