Class: Ppr::If

Inherits:
Macro show all
Defined in:
lib/ppr/ppr_core.rb

Overview

Describes a conditional macro.

Constant Summary

Constants inherited from Macro

Macro::E_NUMBER, Macro::E_TYPE

Instance Attribute Summary

Attributes inherited from Macro

#name

Instance Method Summary collapse

Methods inherited from Macro

#add, #apply, e_message, #e_message, #e_number, #e_shift_number, #e_type?, #empty?, #final?, #generate, #to_quoted

Constructor Details

#initialize(num, ppr, expand: ":<") ⇒ If

Creates a new load or require macro starting at line number num generated from preprocessor ppr.

The expand strings be redefined through keyword arguments.



377
378
379
# File 'lib/ppr/ppr_core.rb', line 377

def initialize(num, ppr, expand: ":<")
    super("",num,ppr,expand: expand)
end