Module: RSpecStepwise
- Defined in:
- lib/two-step/stepwise.rb
Defined Under Namespace
Modules: ClassMethods, StepExample
Classes: ApatheticReporter, WholeListExample
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Attribute Details
#reporter ⇒ Object
Returns the value of attribute reporter.
198
199
200
|
# File 'lib/two-step/stepwise.rb', line 198
def reporter
@reporter
end
|
Class Method Details
.included(base) ⇒ Object
216
217
218
|
# File 'lib/two-step/stepwise.rb', line 216
def self.included(base)
base.extend(ClassMethods)
end
|
Instance Method Details
#instance_variable_set(name, value) ⇒ Object
210
211
212
213
214
|
# File 'lib/two-step/stepwise.rb', line 210
def instance_variable_set(name, value)
if !@ivars_indelible
super
end
end
|
#with_indelible_ivars ⇒ Object
200
201
202
203
204
205
206
207
208
|
# File 'lib/two-step/stepwise.rb', line 200
def with_indelible_ivars
old_value, @ivars_indelible = @ivars_indelible, true
result = yield
@ivars_indelible = old_value
result
rescue Object
@ivars_indelible = old_value
raise
end
|