Method: Cosmos::Group.scripts

Defined in:
lib/cosmos/script/suite.rb

.scriptsObject



283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/cosmos/script/suite.rb', line 283

def self.scripts
  # Find all the script methods
  methods = []
  self.instance_methods.each do |method_name|
    if /^test|^script|op_/.match?(method_name.to_s)
      methods << method_name.to_s
    end
  end
  # Sort by name for all found methods
  methods.sort!
  methods
end