Module: Shrimp

Defined in:
lib/shrimp/source.rb,
lib/shrimp/phantom.rb,
lib/shrimp/version.rb,
lib/shrimp/middleware.rb,
lib/shrimp/configuration.rb

Defined Under Namespace

Classes: Configuration, ImproperSourceError, Middleware, NoExecutableError, Phantom, RenderingError, Source

Constant Summary collapse

VERSION =
"0.0.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Configure Phantomjs someplace sensible, like config/initializers/phantomjs.rb

Examples:

Shrimp.configure do |config|
  config.phantomjs = '/usr/local/bin/phantomjs'
  config.format = 'Letter'
end


48
49
50
# File 'lib/shrimp/configuration.rb', line 48

def configuration
  @configuration
end

Class Method Details

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

Yields:



52
53
54
# File 'lib/shrimp/configuration.rb', line 52

def self.configure
  yield(configuration)
end