Sha256: de18781726dd57f33b8bee1b06893093c583a7e1c249ab25ba184f222c2bbee7

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

module GreatPretender

  class Config
    attr_accessor :default_layout, :path_separator, :view_path
  end

  def self.config
    @config ||= Config.new
    if block_given?
      yield @config
    end
    @config
  end

end

GreatPretender.config do |c|
  c.default_layout = 'application'
  c.path_separator = ' > '
  c.view_path = 'mockups'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
great_pretender-0.1.2 lib/great_pretender/config.rb
great_pretender-0.1.1 lib/great_pretender/config.rb
great_pretender-0.0.2 lib/great_pretender/config.rb
great_pretender-0.0.1 lib/great_pretender/config.rb