Module: UseCases::ModuleOptins::Locked::DSL
- Defined in:
- lib/use_cases/module_optins/locked.rb
Instance Attribute Summary collapse
-
#_lock_options ⇒ Object
readonly
Returns the value of attribute _lock_options.
-
#_lock_with ⇒ Object
readonly
Returns the value of attribute _lock_with.
Instance Method Summary collapse
Instance Attribute Details
#_lock_options ⇒ Object (readonly)
Returns the value of attribute _lock_options.
20 21 22 |
# File 'lib/use_cases/module_optins/locked.rb', line 20 def @_lock_options end |
#_lock_with ⇒ Object (readonly)
Returns the value of attribute _lock_with.
20 21 22 |
# File 'lib/use_cases/module_optins/locked.rb', line 20 def _lock_with @_lock_with end |
Instance Method Details
#lock_with(options = {}, &blk) ⇒ Object
22 23 24 25 |
# File 'lib/use_cases/module_optins/locked.rb', line 22 def lock_with( = {}, &blk) @_lock_with = blk || .delete(:key) @_lock_options = end |