Class: Webr::Portal

Inherits:
Object
  • Object
show all
Defined in:
lib/webr/portal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Portal

Returns a new instance of Portal.



10
11
12
13
14
15
16
# File 'lib/webr/portal.rb', line 10

def initialize(node)
  @node = node
  @env = node.engine
  @scripts = []
  @require_paths = []
  @options = {}
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/webr/portal.rb', line 3

def env
  @env
end

#htmlObject

Returns the value of attribute html.



3
4
5
# File 'lib/webr/portal.rb', line 3

def html
  @html
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/webr/portal.rb', line 3

def options
  @options
end

#require_pathsObject

Returns the value of attribute require_paths.



3
4
5
# File 'lib/webr/portal.rb', line 3

def require_paths
  @require_paths
end

#rootObject

Returns the value of attribute root.



3
4
5
# File 'lib/webr/portal.rb', line 3

def root
  @root
end

#scriptsObject

Returns the value of attribute scripts.



3
4
5
# File 'lib/webr/portal.rb', line 3

def scripts
  @scripts
end