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.
-
#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.
131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/teaspoon/configuration.rb', line 131 def initialize @reports = ["text-summary"] @output_path = "coverage" @statements = nil @functions = nil @branches = nil @lines = nil default = Teaspoon.configuration.coverage_configs["default"] self.instance_eval(&default[:block]) if default yield self if block_given? end |
Instance Attribute Details
#branches ⇒ Object
Returns the value of attribute branches.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def branches @branches end |
#functions ⇒ Object
Returns the value of attribute functions.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def functions @functions end |
#lines ⇒ Object
Returns the value of attribute lines.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def lines @lines end |
#output_path ⇒ Object
Returns the value of attribute output_path.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def output_path @output_path end |
#reports ⇒ Object
Returns the value of attribute reports.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def reports @reports end |
#statements ⇒ Object
Returns the value of attribute statements.
128 129 130 |
# File 'lib/teaspoon/configuration.rb', line 128 def statements @statements end |