Class: Rubycop::Analyzer::Ruby::Range

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(min, max, exclude_end) ⇒ Range

Returns a new instance of Range.



5
6
7
8
9
# File 'lib/rubycop/analyzer/ruby/range.rb', line 5

def initialize(min, max, exclude_end)
  @min = min
  @max = max
  @exclude_end = exclude_end
end

Instance Attribute Details

#exclude_endObject (readonly)

Returns the value of attribute exclude_end.



13
14
15
# File 'lib/rubycop/analyzer/ruby/range.rb', line 13

def exclude_end
  @exclude_end
end

#maxObject (readonly)

Returns the value of attribute max.



12
13
14
# File 'lib/rubycop/analyzer/ruby/range.rb', line 12

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



11
12
13
# File 'lib/rubycop/analyzer/ruby/range.rb', line 11

def min
  @min
end