Class: Rubycop::Analyzer::Ruby::Statements
- Defined in:
- lib/rubycop/analyzer/ruby/statements.rb
Instance Attribute Summary
Attributes inherited from List
Instance Method Summary collapse
-
#to_block(params) ⇒ Object
def inspect @elements.collect { |e| e.inspect }.join end.
- #to_chained_block(blocks = nil, params = nil) ⇒ Object
- #to_program(src, filename) ⇒ Object
Methods inherited from List
Methods inherited from Node
Constructor Details
This class inherits a constructor from Rubycop::Analyzer::Ruby::List
Instance Method Details
#to_block(params) ⇒ Object
def inspect
@elements.collect { |e| e.inspect }.join
end
9 10 11 |
# File 'lib/rubycop/analyzer/ruby/statements.rb', line 9 def to_block(params) Block.new(@elements, params) end |
#to_chained_block(blocks = nil, params = nil) ⇒ Object
13 14 15 |
# File 'lib/rubycop/analyzer/ruby/statements.rb', line 13 def to_chained_block(blocks=nil, params=nil) ChainedBlock.new(blocks, @elements, params) end |