Module: Falkor::Installable

Included in:
Gem, Ruby
Defined in:
lib/falkor/concerns/installable.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/falkor/concerns/installable.rb', line 5

def download
  return yard_filepath if Dir.exist? yard_filepath

  block =
    if block_given?
      Proc.new
    else
      proc {}
    end

  generate_documentation(extract(download_source(&block), &block), &block)
end