Class: Jekyll::WikiRefs::Context
- Inherits:
-
Object
- Object
- Jekyll::WikiRefs::Context
- Defined in:
- lib/jekyll-wikirefs/patch/context.rb
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site) ⇒ Context
constructor
A new instance of Context.
- #registers ⇒ Object
Constructor Details
#initialize(site) ⇒ Context
Returns a new instance of Context.
9 10 11 |
# File 'lib/jekyll-wikirefs/patch/context.rb', line 9 def initialize(site) @site = site end |
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
7 8 9 |
# File 'lib/jekyll-wikirefs/patch/context.rb', line 7 def site @site end |
Instance Method Details
#registers ⇒ Object
13 14 15 |
# File 'lib/jekyll-wikirefs/patch/context.rb', line 13 def registers { :site => site } end |