Sha256: 421ae2bc50f59f13e137e454a209c62a027402bfac8e11959d1c98b308d9d5c4

Contents?: true

Size: 519 Bytes

Versions: 9

Compression:

Stored size: 519 Bytes

Contents

require "rubycritic/generators/html/base"

module Rubycritic
  module Generator
    module Html

      class CodeIndex < Base
        TEMPLATE = erb_template("code_index.html.erb")

        def initialize(analysed_modules)
          @analysed_modules = analysed_modules
        end

        def file_name
          "code_index.html"
        end

        def render
          index_body = TEMPLATE.result(get_binding)
          LAYOUT_TEMPLATE.result(get_binding { index_body })
        end
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubycritic-2.6.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.5.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.4.1 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.4.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.3.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.2.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.1.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.0.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-1.4.0 lib/rubycritic/generators/html/code_index.rb