Class: RubyCop::Ruby::Range
Instance Attribute Summary collapse
-
#exclude_end ⇒ Object
readonly
Returns the value of attribute exclude_end.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize(min, max, exclude_end) ⇒ Range
constructor
A new instance of Range.
Methods inherited from Node
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_end ⇒ Object (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 |
#max ⇒ Object (readonly)
Returns the value of attribute max.
11 12 13 |
# File 'lib/ruby_cop/ruby/range.rb', line 11 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
10 11 12 |
# File 'lib/ruby_cop/ruby/range.rb', line 10 def min @min end |