Class: Lang::Subtags::Language

Inherits:
Entry
  • Object
show all
Defined in:
lib/lang/subtags/language.rb

Overview

Holds data about primary language subtags.

Instance Attribute Summary collapse

Attributes inherited from Entry

#added_at, #comments, #deprecated_at, #name, #preferred_value

Instance Method Summary collapse

Methods inherited from Entry

#add_description, #deprecated?, #description, entries, inherited, subclasses

Instance Attribute Details

#macrolanguageObject

Returns the value of attribute macrolanguage.



6
7
8
# File 'lib/lang/subtags/language.rb', line 6

def macrolanguage
  @macrolanguage
end

#scopeObject

Returns the value of attribute scope.



6
7
8
# File 'lib/lang/subtags/language.rb', line 6

def scope
  @scope
end

#suppress_scriptObject

Returns the value of attribute suppress_script.



6
7
8
# File 'lib/lang/subtags/language.rb', line 6

def suppress_script
  @suppress_script
end

Instance Method Details

#macroObject



10
11
12
# File 'lib/lang/subtags/language.rb', line 10

def macro
  Subtags.entry(:language, macrolanguage) if macrolanguage
end