Sha256: d16abc55e2894830de96ccbd807498954409af4d43f8f43813751b18d057e1ec

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module Take
  module Lint
    class Error

      attr_accessor :type
      attr_accessor :file
      attr_accessor :line
      attr_accessor :column
      attr_accessor :description

      def initialize(data = {})
        data.each do |key, value|
          key = :"#{key}="

          if respond_to? key
            send key, value
          else
            raise ArgumentError, "Bad key given"
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
take-0.0.15 lib/take/lint/error.rb
take-0.0.14 lib/take/lint/error.rb
take-0.0.13 lib/take/lint/error.rb
take-0.0.12 lib/take/lint/error.rb
take-0.0.11 lib/take/lint/error.rb