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.
118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/teaspoon/configuration.rb', line 118 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.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def branches @branches end |
#functions ⇒ Object
Returns the value of attribute functions.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def functions @functions end |
#ignore ⇒ Object
Returns the value of attribute ignore.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def ignore @ignore end |
#lines ⇒ Object
Returns the value of attribute lines.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def lines @lines end |
#output_path ⇒ Object
Returns the value of attribute output_path.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def output_path @output_path end |
#reports ⇒ Object
Returns the value of attribute reports.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def reports @reports end |
#statements ⇒ Object
Returns the value of attribute statements.
115 116 117 |
# File 'lib/teaspoon/configuration.rb', line 115 def statements @statements end |