Module: Screengem

Defined in:
lib/screengem.rb,
lib/screengem/dsl.rb,
lib/screengem/task.rb,
lib/screengem/actor.rb,
lib/screengem/version.rb,
lib/screengem/question.rb,
lib/screengem/actor_memory.rb,
lib/screengem/rails_routes.rb,
lib/screengem/configuration.rb,
lib/screengem/screen_element.rb,
lib/screengem/automatic_visit.rb,
lib/screengem/screen_elements.rb,
lib/screengem/screengem_error.rb,
lib/screengem/concerns/executable.rb,
lib/screengem/concerns/configurable.rb,
lib/screengem/factories/task_factory.rb,
lib/screengem/factories/question_factory.rb,
lib/screengem/factories/factory_creation_error.rb

Defined Under Namespace

Modules: Actor, Configurable, DSL, Executable, Factories, RailsRoutes Classes: ActorMemory, AutomaticVisit, Configuration, Question, ScreenElement, ScreenElements, Task

Constant Summary collapse

VERSION =
"0.21.2"
ScreengemError =
Class.new(RuntimeError)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/screengem/configuration.rb', line 3

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Expose the configuration to users of the Screengem gem.

Yields:



9
10
11
12
13
# File 'lib/screengem/configuration.rb', line 9

def self.configure
  self.configuration ||= Screengem::Configuration.new

  yield(configuration) if block_given?
end