Conversation
rake aborted! NoMethodError: undefined method `start_with?' for #<Array:0x007ffb81278c40> /.rvm/gems/ruby-2.0.0-p481/bundler/gems/Flow-70322b758ce8/lib/cocoa.rb:27:in `block (3 levels) in <top (required)>'
|
I'm curious, how did you manage to have an Array inside |
|
I have 2 rather large arrays: To: HipByte/Flow Flow@noreply.github.com I'm curious, how did you manage to have an Array inside app.files? Could you print the value of app.files in lib/cocoa.rb before the delete_if loop so that we can see what's inside?— |
|
I get the same error occurs. I do not know why that create a redundant array. I'm monkey-patching ! lib/cocoa.rb app.files.flatten!
samples = %w(android ios osx).delete_if {|t| t == template}
samples.each do |sample|
app.files.delete_if { |path| path.start_with?("./app/#{sample}") }
end |
rake aborted!
NoMethodError: undefined method
start_with?' for #<Array:0x007ffb81278c40> /.rvm/gems/ruby-2.0.0-p481/bundler/gems/Flow-70322b758ce8/lib/cocoa.rb:27:inblock (3 levels) in <top (required)>'