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
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_yaml_load_glob
- Owner: SixArm
- License: other
- Created: 2014-03-13T06:48:15.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:29:26.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T21:14:42.584Z (about 1 year ago)
- Topics: gem, parser, ruby, yaml
- Language: Ruby
- Size: 211 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
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|
...
}