Method: PageTemplate::IfCommand#else

Defined in:
lib/PageTemplate/commands.rb

#elseObject

an ‘else’ will modify the command, switching it from adding to

Raises:



343
344
345
346
347
# File 'lib/PageTemplate/commands.rb', line 343

def else
  raise ArgumentError, "More than one 'else' to IfCommand" if @switched
  @in_else = ! @in_else
  @switched = true
end