All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.compass-1.0.3.lib.compass.configuration.file_data.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy