Class: Lookbook::HiddenTag
- Defined in:
- lib/lookbook/tags/hidden_tag.rb
Instance Method Summary collapse
- #to_s ⇒ Object
- #value ⇒ Object (also: #to_bool)
Methods inherited from YardTag
#initialize, #options, supports_options, supports_options?, #text
Constructor Details
This class inherits a constructor from Lookbook::YardTag
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/lookbook/tags/hidden_tag.rb', line 7 def to_s value ? "true" : "false" end |
#value ⇒ Object Also known as: to_bool
3 4 5 |
# File 'lib/lookbook/tags/hidden_tag.rb', line 3 def value text != "false" end |