Class: Patterns::Adapter::Fast::Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/patterns/adapter/fast/dir.rb

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Dir

Returns a new instance of Dir.



5
6
7
# File 'lib/patterns/adapter/fast/dir.rb', line 5

def initialize source
  @source = source
end

Instance Method Details

#symbolsObject



9
10
11
12
13
14
15
# File 'lib/patterns/adapter/fast/dir.rb', line 9

def symbols
  return_me = []
  @source.each do |entry|
    return_me.push entry.gsub(/\.(\w+?)$/, "").to_sym
  end
  return return_me
end