Class: Compass::Configuration::FileData
- Defined in:
- lib/compass/configuration/file_data.rb
Constant Summary
Constants included from Paths
Instance Attribute Summary
Attributes inherited from Data
Class Method Summary collapse
- .new_from_file(config_file, defaults = nil) ⇒ Object
- .new_from_string(contents, filename, defaults = nil) ⇒ Object
Methods inherited from Data
#add_import_path, #asset_cache_buster, #asset_host, #discover, #initialize, #load, #relative_assets?, #require, #set_all, #watch, #watches
Methods included from Paths
Methods included from Adapters
#absolute_path?, #resolve_additional_import_paths, #sass_load_paths, #to_compiler_arguments, #to_sass_engine_options, #to_sass_plugin_options
Methods included from Serialization
#_parse, #get_binding, #issue_deprecation_warnings, #parse, #parse_string, #serialize, #serialize_property
Methods included from Inheritance
Constructor Details
This class inherits a constructor from Compass::Configuration::Data
Class Method Details
.new_from_file(config_file, defaults = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/compass/configuration/file_data.rb', line 4 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 |
.new_from_string(contents, filename, defaults = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/compass/configuration/file_data.rb', line 12 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 |