Class: RBS::UnitTest::Convertibles::CustomRange

Inherits:
BlankSlate
  • Object
show all
Defined in:
lib/rbs/unit_test/convertibles.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

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

#beginObject (readonly)

Returns the value of attribute begin.



155
156
157
# File 'lib/rbs/unit_test/convertibles.rb', line 155

def begin
  @begin
end

#endObject (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

Returns:



163
# File 'lib/rbs/unit_test/convertibles.rb', line 163

def exclude_end? = @exclude_end