Class: RBS::UnitTest::Convertibles::CustomRange
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- RBS::UnitTest::Convertibles::CustomRange
- Defined in:
- lib/rbs/unit_test/convertibles.rb
Instance Attribute Summary collapse
-
#begin ⇒ Object
readonly
Returns the value of attribute begin.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
Instance Method Summary collapse
- #exclude_end? ⇒ Boolean
-
#initialize(begin_, end_, exclude_end = false) ⇒ CustomRange
constructor
A new instance of CustomRange.
Methods inherited from BlankSlate
Constructor Details
#initialize(begin_, end_, exclude_end = false) ⇒ CustomRange
Returns a new instance of CustomRange.
157 158 159 160 161 |
# File 'lib/rbs/unit_test/convertibles.rb', line 157 def initialize(begin_, end_, exclude_end = false) @begin = begin_ @end = end_ @exclude_end = exclude_end end |
Instance Attribute Details
#begin ⇒ Object (readonly)
Returns the value of attribute begin.
155 156 157 |
# File 'lib/rbs/unit_test/convertibles.rb', line 155 def begin @begin end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
155 156 157 |
# File 'lib/rbs/unit_test/convertibles.rb', line 155 def end @end end |
Instance Method Details
#exclude_end? ⇒ Boolean
163 |
# File 'lib/rbs/unit_test/convertibles.rb', line 163 def exclude_end? = @exclude_end |