Method: HOC::Base#initialize

Defined in:
lib/hoc.rb

#initialize(opts) ⇒ Base

Ctor.

opts

Options



33
34
35
36
37
38
39
40
# File 'lib/hoc.rb', line 33

def initialize(opts)
  @dir = opts[:dir]
  @exclude = opts[:exclude] || []
  @author = opts[:author] || ''
  @format = opts[:format] || 'int'
  @since = opts[:since] || '2000-01-01'
  @before = opts[:before] || Time.now.strftime('%Y-%m-%d')
end