Class: Kameleon::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleon/session.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Session

Returns a new instance of Session.



5
6
7
8
9
# File 'lib/kameleon/session.rb', line 5

def initialize(name)
  @name = name

  take_free_session
end

Instance Attribute Details

#capybara_sessionObject

Returns the value of attribute capybara_session.



3
4
5
# File 'lib/kameleon/session.rb', line 3

def capybara_session
  @capybara_session
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/kameleon/session.rb', line 3

def name
  @name
end

Class Method Details

.defined_areasObject



12
13
14
# File 'lib/kameleon/session.rb', line 12

def defined_areas
  @@defined_areas ||= {}
end