Class: Covered::Policy
Instance Attribute Summary
Attributes inherited from Wrapper
Instance Method Summary collapse
- #capture ⇒ Object
- #disable ⇒ Object
- #enable ⇒ Object
- #freeze ⇒ Object
- #include(*args) ⇒ Object
-
#initialize ⇒ Policy
constructor
A new instance of Policy.
- #only(*args) ⇒ Object
- #print_summary(*args) ⇒ Object
- #root(*args) ⇒ Object
- #skip(*args) ⇒ Object
- #source(*args) ⇒ Object
- #summary(*args) ⇒ Object
Methods inherited from Wrapper
Constructor Details
Instance Method Details
#capture ⇒ Object
71 72 73 |
# File 'lib/covered/policy.rb', line 71 def capture @capture ||= Capture.new(@output) end |
#disable ⇒ Object
79 80 81 |
# File 'lib/covered/policy.rb', line 79 def disable capture.disable end |
#enable ⇒ Object
75 76 77 |
# File 'lib/covered/policy.rb', line 75 def enable capture.enable end |
#freeze ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/covered/policy.rb', line 42 def freeze return if frozen? capture summary super end |
#include(*args) ⇒ Object
55 56 57 |
# File 'lib/covered/policy.rb', line 55 def include(*args) @output = Include.new(@output, *args) end |
#only(*args) ⇒ Object
63 64 65 |
# File 'lib/covered/policy.rb', line 63 def only(*args) @output = Only.new(@output, *args) end |
#print_summary(*args) ⇒ Object
87 88 89 |
# File 'lib/covered/policy.rb', line 87 def print_summary(*args) summary.print_partial_summary(*args) end |
#root(*args) ⇒ Object
67 68 69 |
# File 'lib/covered/policy.rb', line 67 def root(*args) @output = Root.new(@output, *args) end |
#skip(*args) ⇒ Object
59 60 61 |
# File 'lib/covered/policy.rb', line 59 def skip(*args) @output = Skip.new(@output, *args) end |