Module: Capybara::UI::InstanceConversions

Included in:
TextTable::CellText
Defined in:
lib/capybara/ui/instance_conversions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


4
5
6
# File 'lib/capybara/ui/instance_conversions.rb', line 4

def self.included(base)
  base.send :include, Capybara::UI::Conversions
end

Instance Method Details

#to_aObject


12
13
14
# File 'lib/capybara/ui/instance_conversions.rb', line 12

def to_a
  List(self)
end

#to_booleanObject


8
9
10
# File 'lib/capybara/ui/instance_conversions.rb', line 8

def to_boolean
  Boolean(self)
end

#to_timeObject


16
17
18
# File 'lib/capybara/ui/instance_conversions.rb', line 16

def to_time
  Timeish(self)
end