fairytale 0.7.9.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
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: