class TZInfo::DataSources::TransitionsDataTimezoneInfo

def initialize(identifier, transitions)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (String identifier, Array[TZInfo::TimezoneTransition] transitions) -> void

This signature was generated using 3 samples from 1 application.

Raises:
  • (ArgumentError) - if `transitions` is an empty `Array`.
  • (ArgumentError) - if `transitions` is `nil`.
  • (ArgumentError) - if `identifier` is `nil`.

Parameters:
  • transitions (Array) -- an `Array` of
  • identifier (String) -- the identifier of the time zone.
def initialize(identifier, transitions)
  super(identifier)
  raise ArgumentError, 'transitions must be specified' unless transitions
  raise ArgumentError, 'transitions must not be an empty Array' if transitions.empty?
  @transitions = transitions.freeze
end