lib/automaton/plugins.rb
def tasks
          t = collector { |plugin| plugin.tasks }
          t.flatten.sort do |a, b|
            a[:name].gsub(':', '0') <=> b[:name].gsub(':', '0')
          end
        end
# Returns a sorted array of hashes that describe tasks.
Returns a sorted array of hashes that describe tasks.
Returns a sorted array of hashes that describe tasks .
def tasks
          t = collector { |plugin| plugin.tasks }
          t.flatten.sort do |a, b|
            a[:name].gsub(':', '0') <=> b[:name].gsub(':', '0')
          end
        end
def tasks t = collector { | plugin | plugin . tasks } t . flatten . sort do | a , b | a [ :name ] . gsub ( ':' , '0' ) <=> b [ :name ] . gsub ( ':' , '0' ) end end
Returns a sorted array of hashes that describe tasks.
Returns a sorted array of hashes that describe tasks .