Module: AnnotateRb::Core

Defined in:
lib/annotate_rb/core.rb

Class Method Summary collapse

Class Method Details

.load_rake_tasksObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/annotate_rb/core.rb', line 10

def load_rake_tasks
  return if @load_rake_tasks

  rake_tasks = Dir[File.join(File.dirname(__FILE__), "tasks", "**/*.rake")]

  rake_tasks.each do |task|
    load task
  end

  @load_rake_tasks = true
end

.versionObject



6
7
8
# File 'lib/annotate_rb/core.rb', line 6

def version
  @version ||= File.read(File.expand_path("../../VERSION", __dir__)).strip
end