module Gretel
Constants
- VERSION
Attributes
reload_environments[W]
Sets the Rails environment names with automatic configuration reload. Default is +[“development”]+.
Public Class Methods
configure() { |self| ... }
click to toggle source
Yields this Gretel
to be configured.
Gretel.configure do |config| config.reload_environments << "staging" end
# File lib/gretel.rb, line 51 def configure yield self end
register_style(style, options)
click to toggle source
Registers a style for later use.
Gretel.register_style :ul, { container_tag: :ul, fragment_tag: :li }
# File lib/gretel.rb, line 39 def register_style(style, options) Gretel::Renderer.register_style style, options end
reload_environments()
click to toggle source
Array of Rails environment names with automatic configuration reload. Default is +[“development”]+.
# File lib/gretel.rb, line 32 def reload_environments @reload_environments ||= ["development"] end