Method: H2o::Tags::With#initialize

Defined in:
lib/h2o/tags/with.rb

#initialize(parser, argstring) ⇒ With



6
7
8
9
10
11
12
13
14
15
# File 'lib/h2o/tags/with.rb', line 6

def initialize(parser, argstring)
  @body = parser.parse(:endwith)
  
  if argstring =~ Syntax
    @name = $1.to_sym
    @shortcut = $2.to_sym
  else
    raise SyntaxError, "Invalid with syntax "
  end
end