Class: Context

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-semtree/patch/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(site) ⇒ Context

Returns a new instance of Context.



6
7
8
# File 'lib/jekyll-semtree/patch/context.rb', line 6

def initialize(site)
  @site = site
end

Instance Attribute Details

#siteObject (readonly)

Returns the value of attribute site.



4
5
6
# File 'lib/jekyll-semtree/patch/context.rb', line 4

def site
  @site
end

Instance Method Details

#registersObject



10
11
12
# File 'lib/jekyll-semtree/patch/context.rb', line 10

def registers
  { :site => site }
end