Sha256: 815848ed735969e100fa4f6fca8542304258be2bdec4b9c25a509c5bf58f05e1

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

require 'middleman-metaman/helpers'

module Middleman
  class MetamanExtension < Extension
    option :host, nil, 'Set host that the site will running at.'

    def initialize(app, options_hash={}, &block)
      super

      # place in class variable so helpers can access
      @@options = options
    end

    def self.options
      @@options
    end

    self.defined_helpers = [Middleman::Metaman::Helpers]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
middleman-metaman-0.1.14 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.13 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.12 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.11 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.10 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.9 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.8 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.7 lib/middleman-metaman/extension.rb
middleman-metaman-0.1.6 lib/middleman-metaman/extension.rb