Sha256: 44fc8049b692022f4f321ca943201cf8284b508a28a3198d052f04ce472bbee1
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
require 'middleman' require 'slim' require 'tilt' module Middleman module Webcomic class MockApp attr_reader :settings def initialize(settings={}) @settings= ::Thor::CoreExt::HashWithIndifferentAccess.new(settings) end def method_missing(key, value=nil) if @settings.has_key? key @settings[key] elsif @settings.has_key? key.to_s @settings[key.to_s] else #super Should it throw an error? nil end end def parse_front_matter(content) Middleman::CoreExtensions::FrontMatter.parse_front_matter(content) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-webcomic-0.5.1 | lib/middleman-webcomic/mock_app.rb |
middleman-webcomic-0.5.0 | lib/middleman-webcomic/mock_app.rb |