Class: Rubycop::Analyzer::Ruby::Range
- Defined in:
- lib/rubycop/analyzer/ruby/range.rb
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.
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_end ⇒ Object (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 |
#max ⇒ Object (readonly)
Returns the value of attribute max.
12 13 14 |
# File 'lib/rubycop/analyzer/ruby/range.rb', line 12 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
11 12 13 |
# File 'lib/rubycop/analyzer/ruby/range.rb', line 11 def min @min end |