Class: Compass::Configuration::FileData
- Defined in:
- lib/compass/configuration/file_data.rb
Class Method Summary collapse
- .new_from_file(config_file, defaults = nil) ⇒ Object
- .new_from_string(contents, filename, defaults = nil) ⇒ Object
Methods included from Serialization
#_parse, #get_binding, #issue_deprecation_warnings, #parse, #parse_string, #serialize, #serialize_property
Methods included from Comments
#comment_for_http_path, #comment_for_line_comments, #comment_for_output_style, #comment_for_preferred_syntax, #comment_for_relative_assets
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 |