Class: Test::Tap
- Inherits:
-
Object
- Object
- Test::Tap
- Defined in:
- lib/test/more.rb
Instance Attribute Summary collapse
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#run ⇒ Object
Returns the value of attribute run.
Instance Method Summary collapse
- #failed_incr ⇒ Object
-
#initialize ⇒ Tap
constructor
A new instance of Tap.
- #run_incr ⇒ Object
Constructor Details
#initialize ⇒ Tap
Returns a new instance of Tap.
179 180 181 182 183 |
# File 'lib/test/more.rb', line 179 def initialize @plan = 0 @run = 0 @failed = 0 end |
Instance Attribute Details
#failed ⇒ Object
Returns the value of attribute failed.
177 178 179 |
# File 'lib/test/more.rb', line 177 def failed @failed end |
#plan ⇒ Object
Returns the value of attribute plan.
175 176 177 |
# File 'lib/test/more.rb', line 175 def plan @plan end |
#run ⇒ Object
Returns the value of attribute run.
176 177 178 |
# File 'lib/test/more.rb', line 176 def run @run end |
Instance Method Details
#failed_incr ⇒ Object
189 190 191 |
# File 'lib/test/more.rb', line 189 def failed_incr @failed += 1 end |
#run_incr ⇒ Object
185 186 187 |
# File 'lib/test/more.rb', line 185 def run_incr @run += 1 end |