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.("reference", __dir__)
Class Method Summary collapse
Class Method Details
.content ⇒ Object
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 |