Class: Lang::Subtags::Entry
- Inherits:
-
Object
- Object
- Lang::Subtags::Entry
show all
- Defined in:
- lib/lang/subtags/entry.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Attribute Details
#added_at ⇒ Object
Returns the value of attribute added_at.
5
6
7
|
# File 'lib/lang/subtags/entry.rb', line 5
def added_at
@added_at
end
|
Returns the value of attribute comments.
5
6
7
|
# File 'lib/lang/subtags/entry.rb', line 5
def
@comments
end
|
#deprecated_at ⇒ Object
Returns the value of attribute deprecated_at.
5
6
7
|
# File 'lib/lang/subtags/entry.rb', line 5
def deprecated_at
@deprecated_at
end
|
#name ⇒ Object
Returns the value of attribute name.
5
6
7
|
# File 'lib/lang/subtags/entry.rb', line 5
def name
@name
end
|
#preferred_value ⇒ Object
Returns the value of attribute preferred_value.
5
6
7
|
# File 'lib/lang/subtags/entry.rb', line 5
def preferred_value
@preferred_value
end
|
Class Method Details
.entries ⇒ Object
32
33
34
|
# File 'lib/lang/subtags/entry.rb', line 32
def self.entries
@entries ||= {}
end
|
.inherited(subclass) ⇒ Object
24
25
26
|
# File 'lib/lang/subtags/entry.rb', line 24
def self.inherited(subclass)
subclasses << subclass
end
|
.subclasses ⇒ Object
28
29
30
|
# File 'lib/lang/subtags/entry.rb', line 28
def self.subclasses
@subclasses ||= []
end
|
Instance Method Details
#add_description(chunk) ⇒ Object
19
20
21
22
|
# File 'lib/lang/subtags/entry.rb', line 19
def add_description(chunk)
@descriptions ||= []
@descriptions << chunk
end
|
#deprecated? ⇒ Boolean
11
12
13
|
# File 'lib/lang/subtags/entry.rb', line 11
def deprecated?
!@deprecated_at.nil?
end
|
#description ⇒ Object
15
16
17
|
# File 'lib/lang/subtags/entry.rb', line 15
def description
@descriptions.join("\n") if @descriptions
end
|