Class: FeduxOrgStdlib::ShellLanguageDetector::Language

Inherits:
Object
  • Object
show all
Defined in:
lib/fedux_org_stdlib/shell_language_detector/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (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

#encodingObject (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_codeObject (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