Module: Yalphabetize
- Defined in:
- lib/yalphabetize/order_checkers/alphabetical_then_capitalized_last.rb,
lib/yalphabetize.rb,
lib/yalphabetize/cli.rb,
lib/yalphabetize/logger.rb,
lib/yalphabetize/reader.rb,
lib/yalphabetize/writer.rb,
lib/yalphabetize/aliaser.rb,
lib/yalphabetize/version.rb,
lib/yalphabetize/yaml_finder.rb,
lib/yalphabetize/alphabetizer.rb,
lib/yalphabetize/option_parser.rb,
lib/yalphabetize/parsing_error.rb,
lib/yalphabetize/yalphabetizer.rb,
lib/yalphabetize/order_checkers.rb,
lib/yalphabetize/offence_detector.rb,
lib/yalphabetize/sequence_indenter.rb,
lib/yalphabetize/file_yalphabetizer.rb,
lib/yalphabetize/order_checkers/base.rb,
lib/yalphabetize/order_checkers/custom.rb,
lib/yalphabetize/order_checkers/capitalized_last_then_alphabetical.rb,
lib/yalphabetize/order_checkers/alphabetical_then_capitalized_first.rb,
lib/yalphabetize/order_checkers/capitalized_first_then_alphabetical.rb
Overview
ABab
Defined Under Namespace
Modules: OrderCheckers Classes: Aliaser, Alphabetizer, CLI, FileYalphabetizer, Logger, OffenceDetector, OptionParser, ParsingError, Reader, SequenceIndenter, Version, Writer, Yalphabetizer, YamlFinder
Constant Summary collapse
- DEFAULT_CONFIG =
{ 'indent_sequences' => true, 'exclude' => [], 'only' => [], 'sort_by' => 'ABab', 'preserve_comments' => true }.freeze
Class Method Summary collapse
Class Method Details
.config ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/yalphabetize.rb', line 35 def config @_config ||= begin specified = if File.exist?('.yalphabetize.yml') Psych.load_file('.yalphabetize.yml') || {} else {} end DEFAULT_CONFIG.merge(specified) end end |