Class: Interactify::Wiring::Files

Inherits:
Object
  • Object
show all
Defined in:
lib/interactify/wiring/files.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root:) ⇒ Files

Returns a new instance of Files.



8
9
10
# File 'lib/interactify/wiring/files.rb', line 8

def initialize(root:)
  @root = root
end

Instance Attribute Details

#rootObject (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_filesObject



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_filesObject



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