Class: Patterns::Adapter::Fast::Dir
- Inherits:
-
Object
- Object
- Patterns::Adapter::Fast::Dir
- Defined in:
- lib/patterns/adapter/fast/dir.rb
Instance Method Summary collapse
-
#initialize(source) ⇒ Dir
constructor
A new instance of Dir.
- #symbols ⇒ Object
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
#symbols ⇒ Object
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 |