Class: Lookbook::HiddenTag

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

Instance Method Summary collapse

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_sObject



7
8
9
# File 'lib/lookbook/tags/hidden_tag.rb', line 7

def to_s
  value ? "true" : "false"
end

#valueObject Also known as: to_bool



3
4
5
# File 'lib/lookbook/tags/hidden_tag.rb', line 3

def value
  text != "false"
end