Method: Glyph::Utils#project?
- Defined in:
- lib/glyph/utils.rb
#project? ⇒ Boolean
Returns true if the PROJECT constant is set to a valid Glyph project directory
161 162 163 164 165 |
# File 'lib/glyph/utils.rb', line 161 def project? children = ["text", "config.yml", "document.glyph"].sort actual_children = PROJECT.children.map{|c| c.basename.to_s}.sort (actual_children & children) == children end |