Module: Feen::Dumper::StyleTurn
- Defined in:
- lib/feen/dumper/style_turn.rb
Overview
Handles conversion of style turn data to FEEN notation string
Constant Summary collapse
- ERRORS =
Error messages for validation
{ invalid_type: "%s must be a String, got %s", empty_string: "%s cannot be empty", invalid_snn: "%s must be valid SNN notation: %s", same_casing: "One style must be uppercase and the other lowercase" }.freeze
Class Method Summary collapse
-
.dump(active_style, inactive_style) ⇒ String
Converts the active and inactive style identifiers to a FEEN-formatted style turn string.
Class Method Details
.dump(active_style, inactive_style) ⇒ String
Converts the active and inactive style identifiers to a FEEN-formatted style turn string
35 36 37 38 |
# File 'lib/feen/dumper/style_turn.rb', line 35 def self.dump(active_style, inactive_style) validate_styles(active_style, inactive_style) "#{active_style}/#{inactive_style}" end |