Method: Hashbang::Config#load
- Defined in:
- lib/hashbang/config.rb
#load(path) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/hashbang/config.rb', line 11 def load(path) if File.exists? path require path end self.url = /^#{url}/ unless self.url.is_a? Regexp end |