Class: Lookbook::ComponentTag

Inherits:
YardTag
  • Object
show all
Defined in:
lib/lookbook/tags/component_tag.rb

Instance Method Summary collapse

Methods inherited from YardTag

#initialize, #options, supports_options, supports_options?, #text, #to_s

Constructor Details

This class inherits a constructor from Lookbook::YardTag

Instance Method Details

#tag_bodyObject



9
10
11
# File 'lib/lookbook/tags/component_tag.rb', line 9

def tag_body
  text
end

#valueObject



3
4
5
6
7
# File 'lib/lookbook/tags/component_tag.rb', line 3

def value
  text.constantize if text.present?
rescue
  nil
end