Class: DeadCodeTerminator::Cond::Base
- Inherits:
-
Object
- Object
- DeadCodeTerminator::Cond::Base
- Includes:
- AST::Sexp
- Defined in:
- lib/dead_code_terminator/cond/base.rb
Constant Summary collapse
- THEN =
:then
- ELSE =
:else
Instance Attribute Summary collapse
-
#ast ⇒ Object
readonly
Returns the value of attribute ast.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env:, ast:) ⇒ Base
constructor
A new instance of Base.
- #value ⇒ Object
Constructor Details
#initialize(env:, ast:) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/dead_code_terminator/cond/base.rb', line 13 def initialize(env:, ast:) @env = env @ast = ast end |
Instance Attribute Details
#ast ⇒ Object (readonly)
Returns the value of attribute ast.
11 12 13 |
# File 'lib/dead_code_terminator/cond/base.rb', line 11 def ast @ast end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
11 12 13 |
# File 'lib/dead_code_terminator/cond/base.rb', line 11 def env @env end |
Instance Method Details
#value ⇒ Object
18 |
# File 'lib/dead_code_terminator/cond/base.rb', line 18 def value; end |