Module: RendertronRuby::Configuration

Included in:
RendertronRuby
Defined in:
lib/rendertron_ruby/configuration.rb

Constant Summary collapse

VALID_OPTIONS =
[
  :host, :scheme, :render_path, :ss_path
]

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



9
10
11
# File 'lib/rendertron_ruby/configuration.rb', line 9

def configure
  yield self
end

#optionsObject



13
14
15
16
17
# File 'lib/rendertron_ruby/configuration.rb', line 13

def options
  VALID_OPTIONS.inject({}) do |option, key|
    option.merge!(key => send(key))
  end
end