Class: RubyCop::Ruby::Range

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_cop/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.



4
5
6
7
8
# File 'lib/ruby_cop/ruby/range.rb', line 4

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.



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

def exclude_end
  @exclude_end
end

#maxObject (readonly)

Returns the value of attribute max.



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

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



10
11
12
# File 'lib/ruby_cop/ruby/range.rb', line 10

def min
  @min
end