Module: Gizmo
- Defined in:
- lib/gizmo.rb,
lib/gizmo/page.rb,
lib/gizmo/helpers.rb,
lib/gizmo/templates.rb,
lib/gizmo/page_mixin.rb,
lib/gizmo/configuration.rb
Defined Under Namespace
Modules: Helpers, PageMixin, Templates Classes: Configuration, Page
Constant Summary collapse
- GizmoError =
Class.new(StandardError)
- MixinNotValidError =
Class.new(GizmoError)
- MixinNotFoundError =
Class.new(GizmoError)
- NilResponseError =
Class.new(GizmoError)
Class Method Summary collapse
- .configuration ⇒ Object
-
.configure(configuration = Gizmo.configuration) {|configuration| ... } ⇒ Object
Configures Gizmo.
Class Method Details
.configuration ⇒ Object
11 12 13 |
# File 'lib/gizmo/configuration.rb', line 11 def self.configuration @@configuration ||= Gizmo::Configuration.new end |
.configure(configuration = Gizmo.configuration) {|configuration| ... } ⇒ Object
Configures Gizmo. If this is not done, Gizmo will use all defaults.
6 7 8 9 |
# File 'lib/gizmo/configuration.rb', line 6 def self.configure(configuration = Gizmo.configuration) yield configuration if block_given? @@configuration = configuration end |