Loading lib/jsduck/app.rb +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ module JsDuck # Initialize guides, videos, examples, ... @assets = Assets.new(@relations, @opts) # Give access to assets from all meta-tags MetaTagRegistry.instance.assets = @assets if @opts.export format_classes FileUtils.rm_rf(@opts.output_dir) unless @opts.output_dir == :stdout Loading lib/jsduck/meta_tag.rb +4 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,10 @@ module JsDuck # method, event, etc. attr_accessor :context # Here the Assets object will be injected, so the Tag implementation # can access guides, videos, etc when he needs to. attr_accessor :assets # It gets passed an array of contents gathered from all meta-tags # of given type. It should return the value to be stored for this # meta-tag at :key. The returned value is also passed to #to_html Loading lib/jsduck/meta_tag_registry.rb +5 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,11 @@ module JsDuck @tags.each {|tag| tag.formatter = doc_formatter } end # Gives access to assets for all tags def assets=(assets) @tags.each {|tag| tag.assets = assets } end # Returns array of attributes to be shown in member signatures # (and in order they should be shown in). def signatures Loading Loading
lib/jsduck/app.rb +3 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,9 @@ module JsDuck # Initialize guides, videos, examples, ... @assets = Assets.new(@relations, @opts) # Give access to assets from all meta-tags MetaTagRegistry.instance.assets = @assets if @opts.export format_classes FileUtils.rm_rf(@opts.output_dir) unless @opts.output_dir == :stdout Loading
lib/jsduck/meta_tag.rb +4 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,10 @@ module JsDuck # method, event, etc. attr_accessor :context # Here the Assets object will be injected, so the Tag implementation # can access guides, videos, etc when he needs to. attr_accessor :assets # It gets passed an array of contents gathered from all meta-tags # of given type. It should return the value to be stored for this # meta-tag at :key. The returned value is also passed to #to_html Loading
lib/jsduck/meta_tag_registry.rb +5 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,11 @@ module JsDuck @tags.each {|tag| tag.formatter = doc_formatter } end # Gives access to assets for all tags def assets=(assets) @tags.each {|tag| tag.assets = assets } end # Returns array of attributes to be shown in member signatures # (and in order they should be shown in). def signatures Loading