Class: JekyllIncludeCache::Env

Inherits:
Liquid::Tag
  • Object
show all
Defined in:
lib/jekyll-include-cache/env.rb

Instance Method Summary collapse

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