Sha256: 5a2207aa386600ca663da84b99849bc21c43803366e6b8c077bc6b6dc5aeb726

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

require 'tap/tasks/load'

module Tap
  module Tasks
    class Load
      
      # :startdoc::task loads data as YAML
      #
      # Loads data from the input IO as YAML.
      #
      #   % tap load/yaml "{key: value}" --: dump/yaml
      #   --- 
      #   key: value
      #
      class Yaml < Load
        
        # Loads data from io as YAML.
        def load(io)
          YAML.load(io)
        end
        
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tap-tasks-0.8.0 lib/tap/tasks/load/yaml.rb
tap-tasks-0.7.0 lib/tap/tasks/load/yaml.rb