Method: DBGeni::Config#plugin_directory
- Defined in:
- lib/dbgeni/config.rb
#plugin_directory(*p) ⇒ Object
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/dbgeni/config.rb', line 235 def plugin_directory(*p) if p.length == 0 @plugin_dir else if is_absolute_path?(p[0]) # it looks like an absolute path @plugin_dir = p[0] else # it looks like a relative path if @base_directory @plugin_dir = File.join(@base_directory, p[0]) else @plugin_dir = p[0] end end end end |