Class: JekyllIncludeCache::Env
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- JekyllIncludeCache::Env
- Defined in:
- lib/jekyll-include-cache/env.rb
Instance Method Summary collapse
-
#initialize(tag_name, text, tokens) ⇒ Env
constructor
A new instance of Env.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, text, tokens) ⇒ Env
Returns a new instance of Env.
7 8 9 10 |
# File 'lib/jekyll-include-cache/env.rb', line 7 def initialize(tag_name, text, tokens) super @text = text end |
Instance Method Details
#render(context) ⇒ Object
12 13 14 |
# File 'lib/jekyll-include-cache/env.rb', line 12 def render(context) "#{@text} #{`env`}" end |