Sha256: 4892208cd70f399c1a647b86d94e0d52c5c4390e75fc7c67e3e69f3c8aecbf5c

Contents?: true

Size: 523 Bytes

Versions: 2

Compression:

Stored size: 523 Bytes

Contents

module Compass
  module Configuration
    class FileData < Data
      def self.new_from_file(config_file, defaults = nil)
        data = new(config_file)
        data.with_defaults(defaults) do
          data._parse(config_file)
        end
        data
      end

      def self.new_from_string(contents, filename, defaults = nil)
        data = new(filename)
        data.with_defaults(defaults) do
          data.parse_string(contents, filename)
        end
        data
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
compass-sourcemaps-0.12.3.sourcemaps.a4836f1 lib/compass/configuration/file_data.rb
compass-sourcemaps-0.12.2.sourcemaps.57a186c lib/compass/configuration/file_data.rb