Module: Textus::Step::Builtin
- Defined in:
- lib/textus/step/builtin.rb,
lib/textus/step/builtin/csv_fetch.rb,
lib/textus/step/builtin/rss_fetch.rb,
lib/textus/step/builtin/json_fetch.rb,
lib/textus/step/builtin/ical_events_fetch.rb,
lib/textus/step/builtin/markdown_links_fetch.rb
Overview
Registers the framework-provided fetch steps (json/csv/markdown-links/ ical-events/rss) into a registry at Store construction. The successor to Step::Builtin.register_all.
Defined Under Namespace
Classes: CsvFetch, IcalEventsFetch, JsonFetch, MarkdownLinksFetch, RssFetch
Constant Summary collapse
- STEPS =
[ JsonFetch, CsvFetch, MarkdownLinksFetch, IcalEventsFetch, RssFetch ].freeze
Class Method Summary collapse
Class Method Details
.register_all(registry) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/textus/step/builtin.rb', line 13 def self.register_all(registry) STEPS.each do |klass| step = klass.new step.name = klass.step_name registry.register(step) end end |