Module: Capybara::Json

Defined in:
lib/capybara/json.rb,
lib/capybara/json/dsl.rb,
lib/capybara/json/error.rb

Defined Under Namespace

Modules: Driver, Dsl Classes: Error

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
# File 'lib/capybara/json.rb', line 12

def self.included(base)
  base.__send__(:include, to_include) unless base < to_include
  base.__send__(:include, ::Capybara::Json::Dsl)
end

.to_includeObject



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

def self.to_include
  ::Capybara.const_defined?("DSL") ? ::Capybara::DSL : ::Capybara
end