Class: Isq::LangString
- Inherits:
-
String
- Object
- String
- Isq::LangString
- Includes:
- Lutaml::Rdf::LanguageTagged
- Defined in:
- lib/isq/lang_string.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(text, language: "en") ⇒ LangString
constructor
A new instance of LangString.
Constructor Details
#initialize(text, language: "en") ⇒ LangString
Returns a new instance of LangString.
11 12 13 14 |
# File 'lib/isq/lang_string.rb', line 11 def initialize(text, language: "en") super(text.to_s) @language = language end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
9 10 11 |
# File 'lib/isq/lang_string.rb', line 9 def language @language end |