Class: Sparrowhawk::PublicDirMapper

Inherits:
Object
  • Object
show all
Includes:
FileEntryMapper
Defined in:
lib/sparrowhawk/public_dir_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FileEntryMapper

#each, #excluded?, #excluded_path_patterns, #expand_path, #file_entry_tuples

Constructor Details

#initializePublicDirMapper

Returns a new instance of PublicDirMapper.



8
9
10
11
# File 'lib/sparrowhawk/public_dir_mapper.rb', line 8

def initialize
  @public_dir = expand_path('./public')
  @excluded_path_patterns = [%r{.*\.sass$}]
end

Instance Attribute Details

#public_dirObject (readonly)

Returns the value of attribute public_dir.



6
7
8
# File 'lib/sparrowhawk/public_dir_mapper.rb', line 6

def public_dir
  @public_dir
end