Module: CalendariumRomanum::CLI::Helper Private
- Included in:
- CalendariumRomanum::CLI, Comparator, Querier
- Defined in:
- lib/calendarium-romanum/cli/helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Mixin providing helper methods used by multiple CLI-related classes.
Instance Method Summary collapse
Instance Method Details
#die!(message, code = 1) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 |
# File 'lib/calendarium-romanum/cli/helper.rb', line 17 def die!(, code = 1) STDERR.puts exit code end |
#sanctorale_from_path(path) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 |
# File 'lib/calendarium-romanum/cli/helper.rb', line 7 def sanctorale_from_path(path) loader = SanctoraleLoader.new if path == '-' loader.load(STDIN) else loader.load_from_file(path) end end |