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.
156 157 158 159 160 |
# File 'lib/rbs/unit_test/convertibles.rb', line 156 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.
154 155 156 |
# File 'lib/rbs/unit_test/convertibles.rb', line 154 def begin @begin end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
154 155 156 |
# File 'lib/rbs/unit_test/convertibles.rb', line 154 def end @end end |
Instance Method Details
#exclude_end? ⇒ Boolean
162 |
# File 'lib/rbs/unit_test/convertibles.rb', line 162 def exclude_end? = @exclude_end |