Sha256: bd3239d3c5bbfc50b049c1d63ea5b6218b03772ad0d16ff055d80b88f8eb349e

Contents?: true

Size: 547 Bytes

Versions: 7

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true
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

7 entries across 7 versions & 1 rubygems

Version Path
rubycritic-3.2.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-3.1.3 lib/rubycritic/generators/html/code_index.rb
rubycritic-3.1.2 lib/rubycritic/generators/html/code_index.rb
rubycritic-3.1.1 lib/rubycritic/generators/html/code_index.rb
rubycritic-3.1.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-3.0.0 lib/rubycritic/generators/html/code_index.rb
rubycritic-2.9.4 lib/rubycritic/generators/html/code_index.rb