Class: Emendate::SeasonAlpha

Inherits:
Segment
  • Object
show all
Defined in:
lib/emendate/segment/season_alpha.rb

Instance Method Summary collapse

Constructor Details

#initializeSeasonAlpha

Returns a new instance of SeasonAlpha.



8
9
10
11
12
13
14
15
16
17
# File 'lib/emendate/segment/season_alpha.rb', line 8

def initialize(...)
  super

  unless type == :season
    raise Emendate::TokenTypeError,
      "SeasonAlpha must be created with type = :season"
  end

  @literal = default_literal if default_literal
end