Sha256: 1e53f597e63df0f5d2f790c468f5065e7b3a7a39a47e0df68b2882c4905597d9

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

module Hieracles
  module Formats
    # format mostly useful for re-integration in param files
    class Rawyaml < Hieracles::Format

      def info(_)
        @node.info.to_yaml
      end

      def files(_)
        @node.files.to_yaml
      end

      def paths(_)
        @node.paths.to_yaml
      end

      def modules(_)
        @node.modules.to_yaml
      end

      def params(args)
        @node.params_tree(true).to_yaml
      end

      def allparams(args)
        @node.params_tree(false).to_yaml
      end

      def modules(args)
        @node.modules.to_yaml
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hieracles-0.0.2 lib/hieracles/formats/rawyaml.rb