Class: Rubycop::Analyzer::Ruby::Block
- Inherits:
-
Statements
- Object
- Node
- List
- Statements
- Rubycop::Analyzer::Ruby::Block
- Defined in:
- lib/rubycop/analyzer/ruby/blocks.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(statements, params = nil) ⇒ Block
constructor
A new instance of Block.
Methods inherited from Statements
#to_block, #to_chained_block, #to_program
Methods inherited from List
Methods inherited from Node
Constructor Details
#initialize(statements, params = nil) ⇒ Block
Returns a new instance of Block.
5 6 7 8 |
# File 'lib/rubycop/analyzer/ruby/blocks.rb', line 5 def initialize(statements, params=nil) @params = params super(statements) end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
10 11 12 |
# File 'lib/rubycop/analyzer/ruby/blocks.rb', line 10 def params @params end |