Class: RspecTree::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_tree/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

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

#contextsObject

Returns the value of attribute contexts.



5
6
7
# File 'lib/rspec_tree/context.rb', line 5

def contexts
  @contexts
end

#examplesObject

Returns the value of attribute examples.



5
6
7
# File 'lib/rspec_tree/context.rb', line 5

def examples
  @examples
end

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/rspec_tree/context.rb', line 5

def title
  @title
end