Top Level Namespace

Defined Under Namespace

Modules: GData, Googletastic Classes: File, Module, String

Constant Summary collapse

GOOGLETASTIC_ROOT =
"#{File.dirname(__FILE__)}/.."

Instance Method Summary collapse

Instance Method Details

#files(path, from = __FILE__, &block) ⇒ Object



33
34
35
# File 'lib/googletastic.rb', line 33

def files(path, from = __FILE__, &block)
  Dir.glob(File.expand_path(File.join(File.dirname(from), path))) {|file| yield file}
end

#require_local(path, from = __FILE__) ⇒ Object



29
30
31
# File 'lib/googletastic.rb', line 29

def require_local(path, from = __FILE__)
  files(path, from) {|file| require file if File.extname(file) == ".rb"}
end

#require_specObject



37
38
39
# File 'lib/googletastic.rb', line 37

def require_spec
  require File.join(GOOGLETASTIC_ROOT, "/spec/spec_helper")
end