Module: Bwkfanboy::PluginInfo
Instance Method Summary collapse
Instance Method Details
#about(path, name, opt) ⇒ Object
223 224 225 226 227 228 229 230 |
# File 'lib/bwkfanboy/plugin.rb', line 223 def about path, name, opt p = Plugin.new path, name, opt r = {} ['title', 'version', 'copyright', 'uri'].each {|idx| r[idx] = p.send(idx) } r end |
#getList(path) ⇒ Object
232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/bwkfanboy/plugin.rb', line 232 def getList path r = [] path.each {|idx| dir = idx.to_s e = { dir => [] } Dir.glob("#{dir}/*.rb").each {|file| e[dir] << File.basename(file, '.rb') } r << e } r end |