Sha256: ab08f462fb53c6b997c0f5638ca2fd9b7e9200046f2835036e2a4099affc08d6

Contents?: true

Size: 644 Bytes

Versions: 32

Compression:

Stored size: 644 Bytes

Contents

include T('default/layout/html')
include YARD::Parser::Ruby::Legacy

def init
  override_serializer
  @object = YARD::Registry.root
  @files.shift
  @objects.delete(YARD::Registry.root)
  @objects.unshift(YARD::Registry.root)
  sections :layout, [:all_objects]
end

def all_objects
  @objects.map { |obj| obj.format(options) }.join("\n")
end

private

def override_serializer
  return if @serializer.nil?
  class << @serializer
    def serialize(object, data)
      return unless object == 'index.html'
      super
    end

    def serialized_path(object)
      return object if object.is_a?(String)
      return 'index.html'
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
balanced-1.2.1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.1.1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.1.0 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.8.2 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.0.2 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.8.1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.0.1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.0 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.7.5 doc/balanced_templates/default/onefile/html/setup.rb
balanced-1.0.beta1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.7.4 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.7.2 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.7.1 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.7.0 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.6.0 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.5.6 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.5.5 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.5.4 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.5.3 doc/balanced_templates/default/onefile/html/setup.rb
balanced-0.5.2 doc/balanced_templates/default/onefile/html/setup.rb