Module: RuboCop::Ext::Range
Relationships & Source Files | |
Defined in: | lib/rubocop/ext/range.rb |
Overview
Extensions to Parser::Source::Range
Instance Attribute Summary
-
#single_line? ⇒ Boolean
readonly
Adds #single_line? to parallel
Node#single_line?
.
Instance Attribute Details
#single_line? ⇒ Boolean
(readonly)
Adds #single_line?
to parallel Node#single_line?
# File 'lib/rubocop/ext/range.rb', line 8
def single_line? first_line == last_line end