Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/desert/ruby/object.rb
Instance Method Summary collapse
Instance Method Details
#load_with_desert(file) ⇒ Object
16 17 18 19 20 |
# File 'lib/desert/ruby/object.rb', line 16 def load_with_desert(file) __each_matching_file(file) do |file| load_without_desert file end end |
#require_with_desert(path) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/desert/ruby/object.rb', line 2 def require_with_desert(path) relative_include_path = (path =~ /\.rb$/) ? path : "#{path}.rb" if $".include?(relative_include_path) return false else __each_matching_file(path) do || require_without_desert end $" << relative_include_path return true end end |