Sha256: f77ea6ff27729b9ddc0740e46cdd782e2f400f2ecde1515cbaed519daaedbf7f
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
module AeEasy module Core module Plugin module ParserBehavior include AeEasy::Core::Plugin::ContextIntegrator # Enqueue a single/multiple pages for fetch. Analog to `save_pages`. # # @param [Array,Hash] pages Pages to save being Hash when single and Array when many. # # @note Instance must implement: # * `save_pages(pages)` def enqueue pages pages = [pages] unless pages.is_a? Array save_pages pages end # Save a single/multiple outputs. Analog to `save_outputs`. # # @param [Array,Hash] outputs Outputs to save being Hash when single and Array when many. # # @note Instance must implement: # * `save_outputs(outputs)` def save outputs outputs = [outputs] unless outputs.is_a? Array save_outputs outputs end # Alias to `page['vars']`. # # @note Instance must implement: # * `page` def vars page['vars'] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ae_easy-core-0.0.5 | lib/ae_easy/core/plugin/parser_behavior.rb |
ae_easy-core-0.0.4 | lib/ae_easy/core/plugin/parser_behavior.rb |
ae_easy-core-0.0.3 | lib/ae_easy/core/plugin/parser_behavior.rb |