Class: Emendate::SeasonAlpha
- Inherits:
-
Segment
- Object
- Segment
- Emendate::SeasonAlpha
- Defined in:
- lib/emendate/segment/season_alpha.rb
Instance Method Summary collapse
-
#initialize ⇒ SeasonAlpha
constructor
A new instance of SeasonAlpha.
Constructor Details
#initialize ⇒ SeasonAlpha
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 |