Method: Roby::Application#framework_file?
- Defined in:
- lib/roby/app.rb
#framework_file?(path) ⇒ Boolean
Tests whether a path is within a framework library
2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 |
# File 'lib/roby/app.rb', line 2946 def framework_file?(path) if path =~ /roby\/.*\.rb$/ true else Roby.app.plugins.any? do |name, _| _, dir, = Roby.app.plugin_definition(name) path =~ %r{(^|/)#{dir}(/|$)} end end end |