An open API service indexing awesome lists of open source software.

https://github.com/sixarm/sixarm_ruby_yaml_load_glob

SixArm.com » Ruby » YAML.load_glob methods
https://github.com/sixarm/sixarm_ruby_yaml_load_glob

gem parser ruby yaml

Last synced: about 2 months ago
JSON representation

SixArm.com » Ruby » YAML.load_glob methods

Awesome Lists containing this project

README

          

# SixArm.com → Ruby →
YAML load glob to documents

* Doc:
* Gem:
* Repo:

## Introduction

Load YAML documents by using file globs, and iterate on the results.

Examples below.

For docs go to

Want to help? We're happy to get pull requests.

## Install

### Gem

To install this gem in your shell or terminal:

gem install sixarm_ruby_yaml_load_glob

### Gemfile

To add this gem to your Gemfile:

gem 'sixarm_ruby_yaml_load_glob'

### Require

To require the gem in your code:

require 'sixarm_ruby_yaml_load_glob'

## Examples

Iterate on documents:

YAML.load_glob_documents("*.yml","*.yaml"){|document|
...
}

Iterate on documents' keys and values:

YAML.load_glob_keys("*.yaml"){|key,values|
...
}