Module: Rubyzen::Providers::IfStatementsProvider
- Defined in:
- lib/rubyzen/providers/if_statements_provider.rb
Overview
Provides access to if/unless conditional statements within a declaration.
Instance Method Summary collapse
-
#if_statements ⇒ Rubyzen::Collections::DeclarationCollection
Collection of if statement declarations.
Instance Method Details
#if_statements ⇒ Rubyzen::Collections::DeclarationCollection
Returns collection of if statement declarations.
6 7 8 |
# File 'lib/rubyzen/providers/if_statements_provider.rb', line 6 def if_statements Rubyzen::Collections::DeclarationCollection.new(node.each_node(:if).map { |if_node| Rubyzen::Declarations::IfStatementDeclaration.new(if_node, self) }) end |