Class: RevealCK::Render::Scope

Inherits:
Object
  • Object
show all
Includes:
ContentsOf, CssFiles, IndexHtmlMaker, JsFiles, PluginFiles, RevealCK::Retrieve
Defined in:
lib/reveal-ck/render/scope.rb

Overview

A Scope provides methods available at render time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IndexHtmlMaker

#body, #head, #script

Methods included from PluginFiles

#plugin_files

Methods included from JsFiles

#js_files

Methods included from CssFiles

#css_files

Methods included from ContentsOf

#contents_of

Methods included from RevealCK::Retrieve

included, #retrieve

Constructor Details

#initialize(args) ⇒ Scope

Returns a new instance of Scope.



14
15
16
17
# File 'lib/reveal-ck/render/scope.rb', line 14

def initialize(args)
  @dir = retrieve(:dir, args)
  @config = retrieve(:config, args)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



12
13
14
# File 'lib/reveal-ck/render/scope.rb', line 12

def config
  @config
end