Class: RuboCop::Cop::Offense::PseudoSourceRange
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/rubocop/cop/offense.rb |
Instance Attribute Summary
- #begin_pos rw
- #column (also: #last_column) rw
- #end_pos rw
-
#first_line
readonly
Alias for #line.
-
#last_column
readonly
Alias for #column.
-
#last_line
readonly
Alias for #line.
- #line (also: #first_line, #last_line) rw
- #source_line rw
Instance Method Summary
- #column_range
-
#length
Alias for #size.
- #size (also: #length)
Instance Attribute Details
#begin_pos (rw)
[ GitHub ]# File 'lib/rubocop/cop/offense.rb', line 63
PseudoSourceRange = Struct.new(:line, :column, :source_line, :begin_pos, :end_pos)
#column (rw) Also known as: #last_column
[ GitHub ]# File 'lib/rubocop/cop/offense.rb', line 63
PseudoSourceRange = Struct.new(:line, :column, :source_line, :begin_pos, :end_pos)
#end_pos (rw)
[ GitHub ]# File 'lib/rubocop/cop/offense.rb', line 63
PseudoSourceRange = Struct.new(:line, :column, :source_line, :begin_pos, :end_pos)
#first_line (readonly)
Alias for #line.
# File 'lib/rubocop/cop/offense.rb', line 65
alias_method :first_line, :line
#last_column (readonly)
Alias for #column.
# File 'lib/rubocop/cop/offense.rb', line 67
alias_method :last_column, :column
#last_line (readonly)
Alias for #line.
# File 'lib/rubocop/cop/offense.rb', line 66
alias_method :last_line, :line
#line (rw) Also known as: #first_line, #last_line
[ GitHub ]# File 'lib/rubocop/cop/offense.rb', line 63
PseudoSourceRange = Struct.new(:line, :column, :source_line, :begin_pos, :end_pos)
#source_line (rw)
[ GitHub ]Instance Method Details
#column_range
[ GitHub ]# File 'lib/rubocop/cop/offense.rb', line 69
def column_range column...last_column end
#length
Alias for #size.
# File 'lib/rubocop/cop/offense.rb', line 76
alias_method :length, :size