lib/automaton/plugins.rb
# Returns an array of Plugin instances.
Returns an array of Plugin instances.
Returns an array of Plugin instances .
def plugins
          return @@plugins if @@plugins
          directories = @@directories.collect do |d|
            File.expand_path("#{d}/*automaton-*/")
          end
          @@plugins = Dir[*directories].collect do |d|
            Plugin.new(d)
          end
          @@plugins.compact!
          @@plugins
        end
def plugins return @@plugins if @@plugins directories = @@directories . collect do | d | File . expand_path ( "#{d}/*automaton-*/" ) end @@plugins = Dir [ * directories ] . collect do | d | Plugin . new ( d ) end @@plugins . compact! @@plugins end
Returns an array of Plugin instances.
Returns an array of Plugin instances .