Sha256: 497216d4cdd8c6360f9cc319c9b87bed3568e23ea1fef04038ef38b2e6adc84d
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
module Docks module Tags class Example < Base def initialize @name = :example @multiple_allowed = true end def process(symbol) symbol.update(@name) do |examples| examples.map do |example| example = code_block_with_language_and_description(example) example[:language] ||= Docks::Languages.extension_for_file(Docks.current_file) OpenStruct.new(example) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | lib/docks/tags/example_tag.rb |
docks_app-0.0.2 | lib/docks/tags/example_tag.rb |
docks_app-0.0.1 | lib/docks/tags/example_tag.rb |