Class: Interactify::Wiring::Files
- Inherits:
-
Object
- Object
- Interactify::Wiring::Files
- Defined in:
- lib/interactify/wiring/files.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root:) ⇒ Files
constructor
A new instance of Files.
- #interactor_files ⇒ Object
- #organizer_files ⇒ Object
Constructor Details
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/interactify/wiring/files.rb', line 6 def root @root end |
Instance Method Details
#interactor_files ⇒ Object
16 17 18 |
# File 'lib/interactify/wiring/files.rb', line 16 def interactor_files possible_files.select { |_, contents| interactor_file?(contents) }.map(&:first).sort end |
#organizer_files ⇒ Object
12 13 14 |
# File 'lib/interactify/wiring/files.rb', line 12 def organizer_files possible_files.select { |_, contents| organizer_file?(contents) }.map(&:first).sort end |