Sha256: a30f0cc90e5e5b9ed38a5d36c79adfee2a5c238907e0c40debb97910c838a004

Contents?: true

Size: 654 Bytes

Versions: 2

Compression:

Stored size: 654 Bytes

Contents

require "ykutils/debugutils"
require "ykutils/stextx"
require "ykutils/yamlop"

module Ykutils
  class YamlXOp < YamlOp
    attr_accessor :yaml

    include DebugUtils

    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.10 lib/ykutils/yamlxop.rb
ykutils-0.1.8 lib/ykutils/yamlxop.rb