Sha256: aa16d23666e4d259aa29e58ad7df9baab069fc325510107f90d410b07f43e119
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
require "ykutils/debugutils" require "ykutils/stextx" require "ykutils/yamlop" module Ykutils class YamlXOp < YamlOp attr_accessor :yaml include DebugUtils def initialize(_opt, _args, debug) debug_utils_init set_debug(debug) end def load(fname) # d_puts "3" # puts_current_method # d_puts "fname=#{fname}" @fname = fname # @pstext = StructuredTextForX.new # puts "fname=#{fname}" # @pstext.load_analyze( fname ) @yaml = load_yaml_file(fname) end def yaml2stext yaml_str = YAML.dump(@yaml) yaml_ary = yaml_str.split("\n") @yamlstext = StructuredTextForAccount.new @yamlstext.analyze(yaml_ary) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ykutils-0.1.7 | lib/ykutils/yamlxop.rb |
ykutils-0.1.6 | lib/ykutils/yamlxop.rb |