Class: Rucc::Lexer::Preprocessor::CondIncl

Inherits:
Object
  • Object
show all
Defined in:
lib/rucc/lexer/preprocessor/cond_incl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ctx, wastrue:) ⇒ CondIncl

Returns a new instance of CondIncl.

Parameters:

  • (CondInclCtx)
  • include_guard (String, NilClass)
  • file (FileIO, NilClass)
  • wastrue (Boolean)


15
16
17
18
19
20
21
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 15

def initialize(ctx, wastrue:)
  @ctx = ctx
  @wastrue = wastrue

  @include_guard = nil
  @file = nil
end

Instance Attribute Details

#ctxObject

Returns the value of attribute ctx.



22
23
24
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22

def ctx
  @ctx
end

#fileObject

Returns the value of attribute file.



22
23
24
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22

def file
  @file
end

#include_guardObject

Returns the value of attribute include_guard.



22
23
24
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22

def include_guard
  @include_guard
end

#wastrueObject

Returns the value of attribute wastrue.



22
23
24
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22

def wastrue
  @wastrue
end