Class: Lookbook::DisplayTag
- Inherits:
-
YardTag
- Object
- YARD::Tags::Tag
- YardTag
- Lookbook::DisplayTag
show all
- Defined in:
- lib/lookbook/tags/display_tag.rb
Instance Method Summary
collapse
Methods inherited from YardTag
#initialize, #options, supports_options, supports_options?, #text, #to_s
Instance Method Details
#key ⇒ Object
3
4
5
|
# File 'lib/lookbook/tags/display_tag.rb', line 3
def key
parts.first
end
|
#parts ⇒ Object
11
12
13
|
# File 'lib/lookbook/tags/display_tag.rb', line 11
def parts
@parts ||= KeyValueTagParser.call(text)
end
|
#value ⇒ Object
7
8
9
|
# File 'lib/lookbook/tags/display_tag.rb', line 7
def value
parts.second
end
|