Class: Teaspoon::Configuration::Coverage
- Inherits:
-
Object
- Object
- Teaspoon::Configuration::Coverage
- Defined in:
- lib/teaspoon/configuration.rb
Instance Attribute Summary collapse
-
#branches ⇒ Object
Returns the value of attribute branches.
-
#functions ⇒ Object
Returns the value of attribute functions.
-
#ignore ⇒ Object
Returns the value of attribute ignore.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#reports ⇒ Object
Returns the value of attribute reports.
-
#statements ⇒ Object
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Coverage
constructor
A new instance of Coverage.
Constructor Details
#initialize {|_self| ... } ⇒ Coverage
Returns a new instance of Coverage.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 117 def initialize @reports = ["text-summary"] @output_path = "coverage" @ignore = [%r{/.rvm/gems/}, %r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}] @statements = nil @functions = nil @branches = nil @lines = nil default = Teaspoon.configuration.coverage_configs["default"] instance_eval(&default[:block]) if default yield self if block_given? end |
Instance Attribute Details
#branches ⇒ Object
Returns the value of attribute branches.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def branches @branches end |
#functions ⇒ Object
Returns the value of attribute functions.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def functions @functions end |
#ignore ⇒ Object
Returns the value of attribute ignore.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def ignore @ignore end |
#lines ⇒ Object
Returns the value of attribute lines.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def lines @lines end |
#output_path ⇒ Object
Returns the value of attribute output_path.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def output_path @output_path end |
#reports ⇒ Object
Returns the value of attribute reports.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def reports @reports end |
#statements ⇒ Object
Returns the value of attribute statements.
114 115 116 |
# File 'lib/teaspoon/configuration.rb', line 114 def statements @statements end |