Class: Lang::Subtags::Extlang

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

Overview

Holds data about extlang 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/extlang.rb', line 6

def macrolanguage
  @macrolanguage
end

#prefixObject

Returns the value of attribute prefix.



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

def prefix
  @prefix
end

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end

#suppress_scriptObject

Returns the value of attribute suppress_script.



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

def suppress_script
  @suppress_script
end

Instance Method Details

#macroObject



11
12
13
# File 'lib/lang/subtags/extlang.rb', line 11

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