Class: RSpec::Plugins::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-plugins/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

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_groupObject

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

#enabledObject

Returns the value of attribute enabled.



86
87
88
# File 'lib/rspec-plugins/core.rb', line 86

def enabled
  @enabled
end

#idObject

Returns the value of attribute id.



86
87
88
# File 'lib/rspec-plugins/core.rb', line 86

def id
  @id
end

#proxyObject

Returns the value of attribute proxy.



86
87
88
# File 'lib/rspec-plugins/core.rb', line 86

def proxy
  @proxy
end

Instance Method Details

#disableObject



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

#enableObject



95
96
97
# File 'lib/rspec-plugins/core.rb', line 95

def enable
  @enabled = true
end