Class: Migu::Configuration
- Inherits:
-
Object
- Object
- Migu::Configuration
- Defined in:
- lib/migu.rb
Instance Attribute Summary collapse
-
#after_hook ⇒ Object
Returns the value of attribute after_hook.
-
#before_hook ⇒ Object
Returns the value of attribute before_hook.
Instance Method Summary collapse
- #after(&block) ⇒ Object
- #before(&block) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
44 45 |
# File 'lib/migu.rb', line 44 def initialize end |
Instance Attribute Details
#after_hook ⇒ Object
Returns the value of attribute after_hook.
42 43 44 |
# File 'lib/migu.rb', line 42 def after_hook @after_hook end |
#before_hook ⇒ Object
Returns the value of attribute before_hook.
42 43 44 |
# File 'lib/migu.rb', line 42 def before_hook @before_hook end |
Instance Method Details
#after(&block) ⇒ Object
51 52 53 |
# File 'lib/migu.rb', line 51 def after(&block) @after_hook = block end |
#before(&block) ⇒ Object
47 48 49 |
# File 'lib/migu.rb', line 47 def before(&block) @before_hook = block end |