Class: OverpassDoc::Package
- Inherits:
-
Object
- Object
- OverpassDoc::Package
- Defined in:
- lib/overpass-doc/package.rb
Overview
A directory containing a package.json, query files and supporting assets
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#queries ⇒ Object
readonly
Returns the value of attribute queries.
Instance Method Summary collapse
- #generate(generator) ⇒ Object
-
#initialize(src_dir) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(src_dir) ⇒ Package
Returns a new instance of Package.
6 7 8 9 10 |
# File 'lib/overpass-doc/package.rb', line 6 def initialize(src_dir) @dir = src_dir @metadata = () @queries = parse_queries() end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
4 5 6 |
# File 'lib/overpass-doc/package.rb', line 4 def dir @dir end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/overpass-doc/package.rb', line 4 def @metadata end |
#queries ⇒ Object (readonly)
Returns the value of attribute queries.
4 5 6 |
# File 'lib/overpass-doc/package.rb', line 4 def queries @queries end |
Instance Method Details
#generate(generator) ⇒ Object
12 13 14 15 16 |
# File 'lib/overpass-doc/package.rb', line 12 def generate(generator) generate_index(generator) generate_query_pages(generator) copy_extra_files(generator) end |