Class: Xberg::YearRange

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeYearRange

Returns a new instance of YearRange.

Parameters:

  • min: (Integer)
  • max: (Integer)
  • years: (Array[Integer])


2728
# File 'sig/types.rbs', line 2728

def initialize: (?min: Integer, ?max: Integer, years: Array[Integer]) -> void

Instance Attribute Details

#maxInteger? (readonly)

Returns the value of attribute max.

Returns:

  • (Integer, nil)


2725
2726
2727
# File 'sig/types.rbs', line 2725

def max
  @max
end

#minInteger? (readonly)

Returns the value of attribute min.

Returns:

  • (Integer, nil)


2724
2725
2726
# File 'sig/types.rbs', line 2724

def min
  @min
end

#yearsArray[Integer] (readonly)

Returns the value of attribute years.

Returns:

  • (Array[Integer])


2726
2727
2728
# File 'sig/types.rbs', line 2726

def years
  @years
end