Class: RspecTree::Context
- Inherits:
-
Object
- Object
- RspecTree::Context
- Defined in:
- lib/rspec_tree/context.rb
Instance Attribute Summary collapse
-
#contexts ⇒ Object
Returns the value of attribute contexts.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
7 8 9 10 11 |
# File 'lib/rspec_tree/context.rb', line 7 def initialize @title = nil @contexts = [] @examples = [] end |
Instance Attribute Details
#contexts ⇒ Object
Returns the value of attribute contexts.
5 6 7 |
# File 'lib/rspec_tree/context.rb', line 5 def contexts @contexts end |
#examples ⇒ Object
Returns the value of attribute examples.
5 6 7 |
# File 'lib/rspec_tree/context.rb', line 5 def examples @examples end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/rspec_tree/context.rb', line 5 def title @title end |