Sha256: 99daa19093d81782e5f86f70b17d2601382dbbd8afd78f5500c20c91bbf958fd

Contents?: true

Size: 186 Bytes

Versions: 44

Compression:

Stored size: 186 Bytes

Contents

module Lookbook
  class HiddenTag < YardTag
    def value
      text != "false"
    end

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

    alias_method :to_bool, :value
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
lookbook-1.3.4 lib/lookbook/tags/hidden_tag.rb
lookbook-1.3.3 lib/lookbook/tags/hidden_tag.rb
lookbook-1.3.1 lib/lookbook/tags/hidden_tag.rb
lookbook-1.3.0 lib/lookbook/tags/hidden_tag.rb