Class: Nocode::Steps::Io::List

Inherits:
Nocode::Step show all
Defined in:
lib/nocode/steps/io/list.rb

Overview

List all files in the path option. Wildcards can be used.

Mechanic: ruby-doc.org/core-2.5.0/Dir.html#method-c-glob

Constant Summary

Constants included from Util::Optionable

Util::Optionable::OPTION_PREFIX

Instance Attribute Summary

Attributes inherited from Nocode::Step

#context, #name, #options, #type

Instance Method Summary collapse

Methods inherited from Nocode::Step

#initialize

Methods included from Util::Optionable

included, #method_missing, #options, #respond_to_missing?

Methods included from Util::Arrayable

#array

Constructor Details

This class inherits a constructor from Nocode::Step

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nocode::Util::Optionable

Instance Method Details

#performObject



13
14
15
# File 'lib/nocode/steps/io/list.rb', line 13

def perform
  registers[register_option] = Dir[path].reject { |p| File.directory?(p) }
end