123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Ext::Range

Relationships & Source Files
Defined in: lib/rubocop/ext/range.rb

Overview

Extensions to Parser::Source::Range

Instance Attribute Summary

Instance Attribute Details

#single_line?Boolean (readonly)

Adds #single_line? to parallel Node#single_line?

[ GitHub ]

  
# File 'lib/rubocop/ext/range.rb', line 8

def single_line?
  first_line == last_line
end