Sha256: 55fd9bbcccc0bf4816de1e46e5810d24386430b10f2b181950bbcdd6264720ca

Contents?: true

Size: 206 Bytes

Versions: 1

Compression:

Stored size: 206 Bytes

Contents

require 'yaml'

class YAMLStruct

  def initialize( stream )
    @yaml = YAML::load( stream )
  end

  def method_missing( sym, *args, &blk )
    if @yaml.key?( sym )
      @yaml[ sym ]
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/mega/yamlstruct.rb