Module: BowlingBall

Defined in:
lib/ball_gag/bowling_ball.rb

Class Method Summary collapse

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

Returns:

  • (Boolean)


43
44
45
# File 'lib/ball_gag/bowling_ball.rb', line 43

def enabled?
  BallGag.enabled?
end

.engineObject



7
8
9
# File 'lib/ball_gag/bowling_ball.rb', line 7

def engine
  BallGag.engine
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_changedObject



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

.preteriteObject



23
24
25
# File 'lib/ball_gag/bowling_ball.rb', line 23

def preterite
  BallGag.preterite
end

.preterite=(preterite) ⇒ Object



27
28
29
# File 'lib/ball_gag/bowling_ball.rb', line 27

def preterite= preterite
  BallGag.preterite = preterite
end

.verbObject



15
16
17
# File 'lib/ball_gag/bowling_ball.rb', line 15

def verb
  BallGag.verb
end

.verb=(verb) ⇒ Object



19
20
21
# File 'lib/ball_gag/bowling_ball.rb', line 19

def verb= verb
  BallGag.verb= verb
end