Module: TheLocal::Reference

Defined in:
lib/the_local/reference.rb

Overview

Loads the_local’s own knowledge guide, embedded verbatim into its locals.

Constant Summary collapse

DIR =
File.expand_path("reference", __dir__)

Class Method Summary collapse

Class Method Details

.contentObject



8
9
10
# File 'lib/the_local/reference.rb', line 8

def self.content
  read("guide.md")
end

.read(name) ⇒ Object



12
13
14
# File 'lib/the_local/reference.rb', line 12

def self.read(name)
  File.read(File.join(DIR, name)).chomp
end