Module: Flatito
- Defined in:
- lib/flatito.rb,
lib/flatito/utils.rb,
lib/flatito/config.rb,
lib/flatito/finder.rb,
lib/flatito/version.rb,
lib/flatito/renderer.rb,
lib/flatito/print_items.rb,
lib/flatito/flatten_yaml.rb,
lib/flatito/json_scanner.rb,
lib/flatito/tree_iterator.rb,
lib/flatito/regex_from_search.rb,
lib/flatito/yaml_with_line_number.rb
Defined Under Namespace
Modules: Config, RegexFromSearch, Utils, YAMLWithLineNumber Classes: Base, Finder, FlattenYaml, JsonScanner, PrintItems, Renderer, TreeIterator
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
Class Method Details
.flat_content(content, options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/flatito.rb', line 25 def flat_content(content, = {}) items = FlattenYaml.items_from_content(content) PrintItems.new([:search], [:search_value], case_sensitive: [:case_sensitive]).print(items) || false end |