Sha256: 10b315a833776a883718ba0ce3ef9dbd843384704c1a0852e3fee0a50d1b53bb

Contents?: true

Size: 177 Bytes

Versions: 12

Compression:

Stored size: 177 Bytes

Contents

module Lookbook
  class ComponentTag < YardTag
    def value
      text.constantize if text.present?
    rescue
      nil
    end

    def tag_body
      text
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lookbook-1.5.5 lib/lookbook/tags/component_tag.rb
lookbook-1.5.4 lib/lookbook/tags/component_tag.rb
lookbook-1.5.3 lib/lookbook/tags/component_tag.rb
lookbook-1.5.2 lib/lookbook/tags/component_tag.rb
lookbook-1.5.1 lib/lookbook/tags/component_tag.rb
lookbook-1.5.0 lib/lookbook/tags/component_tag.rb
lookbook-1.4.5 lib/lookbook/tags/component_tag.rb
lookbook-1.4.4 lib/lookbook/tags/component_tag.rb
lookbook-1.4.3 lib/lookbook/tags/component_tag.rb
lookbook-1.4.2 lib/lookbook/tags/component_tag.rb
lookbook-1.4.1 lib/lookbook/tags/component_tag.rb
lookbook-1.4.0 lib/lookbook/tags/component_tag.rb