Class: FeduxOrgStdlib::ShellLanguageDetector::Language
- Inherits:
-
Object
- Object
- FeduxOrgStdlib::ShellLanguageDetector::Language
- Defined in:
- lib/fedux_org_stdlib/shell_language_detector/language.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
-
#language_code ⇒ Object
readonly
Returns the value of attribute language_code.
Instance Method Summary collapse
-
#initialize(language_code:, country_code:, encoding: nil) ⇒ Language
constructor
A new instance of Language.
Constructor Details
#initialize(language_code:, country_code:, encoding: nil) ⇒ Language
Returns a new instance of Language.
8 9 10 11 12 |
# File 'lib/fedux_org_stdlib/shell_language_detector/language.rb', line 8 def initialize(language_code:, country_code:, encoding: nil) @language_code = language_code @country_code = country_code @encoding = encoding end |
Instance Attribute Details
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
6 7 8 |
# File 'lib/fedux_org_stdlib/shell_language_detector/language.rb', line 6 def country_code @country_code end |
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
6 7 8 |
# File 'lib/fedux_org_stdlib/shell_language_detector/language.rb', line 6 def encoding @encoding end |
#language_code ⇒ Object (readonly)
Returns the value of attribute language_code.
6 7 8 |
# File 'lib/fedux_org_stdlib/shell_language_detector/language.rb', line 6 def language_code @language_code end |