Method: PageTemplate::IfCommand#initialize
- Defined in:
- lib/PageTemplate/commands.rb
#initialize(called_as, value) ⇒ IfCommand
command must match “if <value>” or “unless <value>”
317 318 319 320 321 322 323 324 325 |
# File 'lib/PageTemplate/commands.rb', line 317 def initialize(called_as, value) @value = value @called_as = called_as @trueCommands = [] @trueCommands << [value,BlockCommand.new] @falseCommands = BlockCommand.new @in_else = (called_as == 'unless') @switched = false end |