Class: DeadCodeTerminator::IfEnv

Inherits:
PlainIf
  • Object
show all
Defined in:
lib/dead_code_terminator/if_env.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.match?(ast) ⇒ Boolean

Returns:

  • (Boolean)


5
# File 'lib/dead_code_terminator/if_env.rb', line 5

def self.match?(ast); end

.nodesObject



11
12
13
# File 'lib/dead_code_terminator/if_env.rb', line 11

def self.nodes
  ancestors
end

Instance Method Details

#else_branchObject



9
# File 'lib/dead_code_terminator/if_env.rb', line 9

def else_branch; end

#then_branchObject



7
# File 'lib/dead_code_terminator/if_env.rb', line 7

def then_branch; end