Sha256: 53c56c2cd9bcc5acd618a88050e395b36c950c827d35b276647f8f9e3f56f49c
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
module Reader class SymbolMatrix attr_accessor :source def initialize source @source = source end def file path yaml(File.read(path)) end def yaml data @source.merge! YAML.load(ERB.new(data).result) end def serialization data @source.merge! ::SymbolMatrix::Serialization.parse data end alias :smas :serialization end end class SymbolMatrix < Hash include Discoverer::Reader # @deprecated Use #from.yaml def from_yaml *args Kernel.warn "[DEPRECATION]: #from_yaml is deprecated, please use #from.yaml instead" end # @deprecated Use #from.file def from_file *args Kernel.warn "[DEPRECATION]: #from_file is deprecated, please use #from.file instead" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamera-symbolmatrix-1.2.1 | lib/reader/symbolmatrix.rb |