Method: EachScope#initialize

Defined in:
lib/volt/server/html_parser/each_scope.rb

#initialize(handler, path, content) ⇒ EachScope

Returns a new instance of EachScope.



2
3
4
5
# File 'lib/volt/server/html_parser/each_scope.rb', line 2

def initialize(handler, path, content)
  super(handler, path)
  @content, @variable_name = content.strip.split(/ as /)
end