Sha256: fc69d5208543ffc3018abe9c6ece9455dc9d1b689681554b5ac21086a03dd6ac

Contents?: true

Size: 517 Bytes

Versions: 1

Compression:

Stored size: 517 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

1 entries across 1 versions & 1 rubygems

Version Path
rubycritic-2.9.3 lib/rubycritic/generators/html/code_index.rb