Module: Coffeefile::Source
- Defined in:
- lib/coffeefile.rb
Class Method Summary collapse
Class Method Details
.contents ⇒ Object
12 13 14 15 16 |
# File 'lib/coffeefile.rb', line 12 def self.contents @contents ||= path.read.split("\n").compact.delete_if { |l| l.include?("#") }.collect do |f| Dir.glob(f) end.flatten!.uniq end |
.path ⇒ Object
8 9 10 |
# File 'lib/coffeefile.rb', line 8 def self.path @path ||= Pathname.new(Dir.pwd).join('Coffeefile') end |