Module: PointmdComments

Defined in:
lib/pointmd_comments.rb,
lib/pointmd_comments/version.rb,
lib/pointmd_comments/opt_parser.rb,
lib/pointmd_comments/aggregators/main.rb,
lib/pointmd_comments/aggregators/posts.rb,
lib/pointmd_comments/aggregators/comments.rb,
lib/pointmd_comments/errors/unknown_source.rb,
lib/pointmd_comments/errors/not_implemented.rb

Defined Under Namespace

Modules: Aggregators, Errors Classes: Error, OptParser

Constant Summary collapse

VERSION =
'0.2.1'.freeze

Class Method Summary collapse

Class Method Details

.collect(options = {}) ⇒ Object



19
20
21
# File 'lib/pointmd_comments.rb', line 19

def self.collect(options = {})
  Aggregators::Main.new(options).call
end

.collect_from_shellObject



23
24
25
26
27
28
29
30
# File 'lib/pointmd_comments.rb', line 23

def self.collect_from_shell
  args = ARGV.dup
  options = OptParser.new.parse
  Aggregators::Main.new(options).call
rescue StandardError => e
  puts e.class, e.message
  puts e.backtrace if args.include? '-v'
end