Method: Condom::CV#initialize
- Defined in:
- lib/condom/cv.rb
#initialize(args = nil) ⇒ CV
The constructor. Argument could be:
-
nothing,
-
the title of the document,
-
a hash of options.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/condom/cv.rb', line 13 def initialize(args = nil) # Need to initialize each variables else they won't exist in instance_variables. @theme = @color = nil # The default options = { :document_class => 'moderncv', :title => 'Curriculum Vitae', :filename => 'cv', :theme => 'classic', :color => 'grey' } if args.is_a? String [:title] = args elsif args.is_a? Hash .merge! args end super() end |