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.



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

#beginObject (readonly)

Returns the value of attribute begin.



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

def begin
  @begin
end

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

Returns:

  • (Boolean)


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

def exclude_end? = @exclude_end