Method: Library#locate

Defined in:
lib/picrate/library.rb

#locateObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/picrate/library.rb', line 16

def locate
  return if (@path = Pathname.new(
    File.join(Processing::SKETCH_ROOT, 'library', name, "#{name}.rb")
  )).exist?
  return if (@path = Pathname.new(
    File.join(PICRATE_ROOT, 'library', name, "#{name}.rb")
  )).exist?

  locate_java
end