Class: RubyCop::Ruby::Statements
- Defined in:
- lib/ruby_cop/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::Ruby::List
Instance Method Details
#to_block(params) ⇒ Object
def inspect
@elements.collect { |e| e.inspect }.join
end
8 9 10 |
# File 'lib/ruby_cop/ruby/statements.rb', line 8 def to_block(params) Block.new(@elements, params) end |
#to_chained_block(blocks = nil, params = nil) ⇒ Object
12 13 14 |
# File 'lib/ruby_cop/ruby/statements.rb', line 12 def to_chained_block(blocks=nil, params=nil) ChainedBlock.new(blocks, @elements, params) end |