Sha256: c12f84b5b9308f9fa4801a57a39a381467f91431fed15964a4f0dda040be1a9e

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 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(
        "../../../../resources/checkstyle/#{file}",
        __FILE__
      )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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