Module: RSpecOutlines::Example

Defined in:
lib/rspec_outlines.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#outline_bindingObject (readonly)

Returns the value of attribute outline_binding.



87
88
89
# File 'lib/rspec_outlines.rb', line 87

def outline_binding
  @outline_binding
end

Class Method Details

.included(base) ⇒ Object



75
76
77
78
79
80
# File 'lib/rspec_outlines.rb', line 75

def self.included(base)
  base.class_eval do
    alias initialize_without_rspec_outlines initialize
    alias initialize initialize_with_rspec_outlines
  end
end

Instance Method Details

#initialize_with_rspec_outlines(*args, &block) ⇒ Object



82
83
84
85
# File 'lib/rspec_outlines.rb', line 82

def initialize_with_rspec_outlines(*args, &block)
  initialize_without_rspec_outlines(*args, &block)
  @outline_binding = @example_group_class.current_outline_binding
end