fairytale 0.7.9.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/fairytale.rb +4 -0
  2. metadata +1 -1
data/lib/fairytale.rb CHANGED
@@ -29,6 +29,10 @@ module Fairytale
29
29
  instance_variables.each { |var_symbol| instance_variable_set var_symbol, nil }
30
30
  end
31
31
 
32
+ def before &block
33
+ block.call
34
+ end
35
+
32
36
  def md file, params = {}, &block
33
37
  file = "content/#{file.to_s}" if file.class == Symbol
34
38
  tilt(file, params, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fairytale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9.3
4
+ version: 0.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: