Sha256: d4ef2067337b0dbb4e932ca4c27ff35b1d01095f3fa9347c5759f956038dd15d

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

module Support
  ##
  # Responsible for provide relative paths to support files
  # Files located under: /lib/plugin/pre-commit/support/checkstyle*
  module Path
    ##
    # Return support path relative to a given +file+
    #
    # @param file [String] file name
    # @return [String] formatted path
    def self.relative_to(file)
      File.expand_path(
        "../../../../pre-commit/support/checkstyle/#{file}",
        __FILE__
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
java-checkstyle-1.0.0 lib/plugins/pre_commit/support/path.rb
java-checkstyle-0.0.2 lib/plugins/pre_commit/support/path.rb