Module: YAML
- Defined in:
- lib/dmorrill10-utils/yaml.rb
Class Method Summary collapse
-
.load_stream_from_file(filename) ⇒ Object
Load the document contained in
filename
.
Class Method Details
.load_stream_from_file(filename) ⇒ Object
Load the document contained in filename
. Returns the yaml contained in filename
as a ruby object
4 5 6 |
# File 'lib/dmorrill10-utils/yaml.rb', line 4 def self.load_stream_from_file filename File.open(filename, 'r:bom|utf-8') { |f| self.load_stream f, filename } end |