Module: SelfControl::ClassMethods
- Defined in:
- lib/self-control.rb
Instance Attribute Summary collapse
-
#selfcontrol_builder ⇒ Object
readonly
Returns the value of attribute selfcontrol_builder.
Instance Method Summary collapse
- #selfcontrol(options = {}, &block) ⇒ Object (also: #flowcontrol)
Instance Attribute Details
#selfcontrol_builder ⇒ Object (readonly)
Returns the value of attribute selfcontrol_builder.
8 9 10 |
# File 'lib/self-control.rb', line 8 def selfcontrol_builder @selfcontrol_builder end |
Instance Method Details
#selfcontrol(options = {}, &block) ⇒ Object Also known as: flowcontrol
10 11 12 13 |
# File 'lib/self-control.rb', line 10 def selfcontrol(={}, &block) state_column = .delete(:for) @selfcontrol_builder = SelfControl::Builder.new(self, state_column, &block) end |