Class: Neutron::FilePairList

Inherits:
Array
  • Object
show all
Defined in:
lib/neutron.rb

Overview

Small extension for array which is developed to be used in Neutron.files()

Instance Method Summary collapse

Instance Method Details

#sourcesArray<String>

Returns:

  • (Array<String>)


68
69
70
71
72
# File 'lib/neutron.rb', line 68

def sources
  self.map do |i|
    i.source
  end
end

#targetsArray<String>

Returns:

  • (Array<String>)


74
75
76
77
78
# File 'lib/neutron.rb', line 74

def targets
  self.map do |i|
    i.target
  end
end