Class: Rucc::Lexer::Preprocessor::CondIncl
- Inherits:
-
Object
- Object
- Rucc::Lexer::Preprocessor::CondIncl
- Defined in:
- lib/rucc/lexer/preprocessor/cond_incl.rb
Instance Attribute Summary collapse
-
#ctx ⇒ Object
Returns the value of attribute ctx.
-
#file ⇒ Object
Returns the value of attribute file.
-
#include_guard ⇒ Object
Returns the value of attribute include_guard.
-
#wastrue ⇒ Object
Returns the value of attribute wastrue.
Instance Method Summary collapse
-
#initialize(ctx, wastrue:) ⇒ CondIncl
constructor
A new instance of CondIncl.
Constructor Details
#initialize(ctx, wastrue:) ⇒ CondIncl
Returns a new instance of CondIncl.
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
#ctx ⇒ Object
Returns the value of attribute ctx.
22 23 24 |
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22 def ctx @ctx end |
#file ⇒ Object
Returns the value of attribute file.
22 23 24 |
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22 def file @file end |
#include_guard ⇒ Object
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 |
#wastrue ⇒ Object
Returns the value of attribute wastrue.
22 23 24 |
# File 'lib/rucc/lexer/preprocessor/cond_incl.rb', line 22 def wastrue @wastrue end |