Sha256: 54ba68a71eda7917d41cc0e8beda31d9e6bcd6b318654630de60fd3b9daea367

Contents?: true

Size: 742 Bytes

Versions: 1

Compression:

Stored size: 742 Bytes

Contents

require 'walky/version'
require 'walky/parser'
require 'walky/walk_methods'
require 'walky/instance_methods'

module Walky
  def self.move(hash, path)
    Walky::Parser.parse(hash, path)
  end

  def self.extract(hash, path)
    Walky::Parser.extract(hash, path)
  end

  def self.extract_with_sym(hash, path)
    Walky::Parser.extract_with_sym(hash, path)
  end

  class Walker
    def initialize(hash)
      @hash = hash
    end

    def [](path)
      parse(path)
    end

    def walk(path)
      parse(path)
    end

    def parse(path)
      Walker.parse(@hash, path)
    end

    def self.parse(hash, path)
      Walky::Parser.parse(hash, path)
    end

    def extract(path)
      Walky::Parser.extract(@hash, path)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
walky-0.0.1 lib/walky.rb