Module: Vapir::Configurable

Included in:
Vapir, Browser, Element
Defined in:
lib/vapir-common/config.rb,
lib/vapir-common/config.rb

Overview

reopen this module to add stuff that’s sort of separate from the Configurable module itself

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configuration_parentObject

the parent for the Configuration returned from #config



237
238
239
# File 'lib/vapir-common/config.rb', line 237

def configuration_parent
  @configuration_parent
end

Instance Method Details

#configObject

returns a Configuration object



239
240
241
# File 'lib/vapir-common/config.rb', line 239

def config
  @configuration ||= Configuration.new(configuration_parent)
end

#with_config(hash, &block) ⇒ Object

see Configuration#with_config



243
244
245
# File 'lib/vapir-common/config.rb', line 243

def with_config(hash, &block)
  config.with_config(hash, &block)
end

#without_waiting(&block) ⇒ Object

call the given block with :wait set to false



324
325
326
# File 'lib/vapir-common/config.rb', line 324

def without_waiting(&block)
  with_config(:wait => false, &block)
end