Class: RSpec::Plugins::Base
- Inherits:
-
Object
- Object
- RSpec::Plugins::Base
- Defined in:
- lib/rspec-plugins/core.rb
Instance Attribute Summary collapse
-
#current_example_group ⇒ Object
Returns the value of attribute current_example_group.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
Instance Method Summary collapse
- #disable ⇒ Object
- #dispatch(meth, *args, &block) ⇒ Object
- #enable ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
88 89 90 91 92 93 |
# File 'lib/rspec-plugins/core.rb', line 88 def initialize @id = nil @enabled = false @proxy = nil @current_example_group = nil end |
Instance Attribute Details
#current_example_group ⇒ Object
Returns the value of attribute current_example_group.
86 87 88 |
# File 'lib/rspec-plugins/core.rb', line 86 def current_example_group @current_example_group end |
#enabled ⇒ Object
Returns the value of attribute enabled.
86 87 88 |
# File 'lib/rspec-plugins/core.rb', line 86 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
86 87 88 |
# File 'lib/rspec-plugins/core.rb', line 86 def id @id end |
#proxy ⇒ Object
Returns the value of attribute proxy.
86 87 88 |
# File 'lib/rspec-plugins/core.rb', line 86 def proxy @proxy end |
Instance Method Details
#disable ⇒ Object
99 100 101 |
# File 'lib/rspec-plugins/core.rb', line 99 def disable @enabled = false end |
#dispatch(meth, *args, &block) ⇒ Object
103 104 105 |
# File 'lib/rspec-plugins/core.rb', line 103 def dispatch(meth, *args, &block) send meth, *args, &block end |
#enable ⇒ Object
95 96 97 |
# File 'lib/rspec-plugins/core.rb', line 95 def enable @enabled = true end |