Class: IntervalNotation::BasicIntervals::BoundaryPoint

Inherits:
Struct
  • Object
show all
Defined in:
lib/interval_notation/basic_intervals.rb

Overview

Auxiliary class to represent information about interval boundaries

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#includedObject

Returns the value of attribute included

Returns:

  • (Object)

    the current value of included



7
8
9
# File 'lib/interval_notation/basic_intervals.rb', line 7

def included
  @included
end

#interval_boundaryObject

Returns the value of attribute interval_boundary

Returns:

  • (Object)

    the current value of interval_boundary



7
8
9
# File 'lib/interval_notation/basic_intervals.rb', line 7

def interval_boundary
  @interval_boundary
end

#interval_indexObject

Returns the value of attribute interval_index

Returns:

  • (Object)

    the current value of interval_index



7
8
9
# File 'lib/interval_notation/basic_intervals.rb', line 7

def interval_index
  @interval_index
end

#openingObject

Returns the value of attribute opening

Returns:

  • (Object)

    the current value of opening



7
8
9
# File 'lib/interval_notation/basic_intervals.rb', line 7

def opening
  @opening
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/interval_notation/basic_intervals.rb', line 7

def value
  @value
end

Instance Method Details

#closingObject



8
9
10
# File 'lib/interval_notation/basic_intervals.rb', line 8

def closing
  !opening
end