class Soryo::Plugin
Public Class Methods
descendants()
click to toggle source
Used for finding all necessary plugins
# File lib/classes/plugin.rb, line 5 def self.descendants descendants = [] ObjectSpace.each_object(singleton_class) do |k| descendants.unshift k unless k == self end descendants end
Public Instance Methods
run(contents)
click to toggle source
# File lib/classes/plugin.rb, line 13 def run(contents) abort_string = '#{self.class} does not have a run method' abort(abort_string) end