Class: Dojo
- Inherits:
-
Object
- Object
- Dojo
- Defined in:
- lib/dojo.rb
Instance Method Summary collapse
-
#initialize(dir, file_filter = "**/*.rb") ⇒ Dojo
constructor
A new instance of Dojo.
- #validate(options) ⇒ Object
Constructor Details
#initialize(dir, file_filter = "**/*.rb") ⇒ Dojo
Returns a new instance of Dojo.
7 8 9 10 |
# File 'lib/dojo.rb', line 7 def initialize(dir, file_filter = "**/*.rb") @dir = dir @file_filter = file_filter end |
Instance Method Details
#validate(options) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/dojo.rb', line 12 def validate() Dir.glob("#{@dir}/#{@file_filter}").each do |file| validator = ClassValidator.new(file, ) validator.validate end end |