Module: BowlingBall
- Defined in:
- lib/ball_gag/bowling_ball.rb
Class Method Summary collapse
- .disable!(&block) ⇒ Object
- .enable!(&block) ⇒ Object
- .enabled? ⇒ Boolean
- .engine ⇒ Object
- .engine=(engine) ⇒ Object
- .included(base) ⇒ Object
- .negative_preterite=(preterite) ⇒ Object
- .only_validate_on_attribute_changed ⇒ Object
- .only_validate_on_attribute_changed=(bool) ⇒ Object
- .preterite ⇒ Object
- .preterite=(preterite) ⇒ Object
- .verb ⇒ Object
- .verb=(verb) ⇒ Object
Class Method Details
.disable!(&block) ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/ball_gag/bowling_ball.rb', line 55 def disable! &block if block BallGag.disable! &block else BallGag.disable! end end |
.enable!(&block) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/ball_gag/bowling_ball.rb', line 47 def enable! &block if block BallGag.enable! &block else BallGag.enable! end end |
.enabled? ⇒ Boolean
43 44 45 |
# File 'lib/ball_gag/bowling_ball.rb', line 43 def enabled? BallGag.enabled? end |
.engine=(engine) ⇒ Object
11 12 13 |
# File 'lib/ball_gag/bowling_ball.rb', line 11 def engine= engine BallGag.engine = engine end |
.included(base) ⇒ Object
3 4 5 |
# File 'lib/ball_gag/bowling_ball.rb', line 3 def included base base.send(:include, BallGag) end |
.negative_preterite=(preterite) ⇒ Object
31 32 33 |
# File 'lib/ball_gag/bowling_ball.rb', line 31 def negative_preterite= preterite BallGag.negative_preterite = preterite end |
.only_validate_on_attribute_changed ⇒ Object
35 36 37 |
# File 'lib/ball_gag/bowling_ball.rb', line 35 def only_validate_on_attribute_changed BallGag.only_validate_on_attribute_changed end |
.only_validate_on_attribute_changed=(bool) ⇒ Object
39 40 41 |
# File 'lib/ball_gag/bowling_ball.rb', line 39 def only_validate_on_attribute_changed= bool BallGag.only_validate_on_attribute_changed = bool end |
.preterite ⇒ Object
23 24 25 |
# File 'lib/ball_gag/bowling_ball.rb', line 23 def preterite BallGag.preterite end |