U
Une Bévue
here is my code :
h = Hash.new (same error with h = {} )
h[
ath] = "/Users/yt/lib/ruby-i386/"
puts "# -> h[
ath] = #{h[
ath]}"
info_for(h[
ath]).each {|k,v| puts "# -> #{k} (#{k.class}) => #{v}
(#{v.class})"}
with :
def info_for(h)
raise ArgumentError, "The file '#{h[
ath]}' does not exist!" unless
File.exist?(h[
ath])
a = MacTypes::Alias.path(h[
ath])
ho = OSAX::ScriptingAddition.new('StandardAdditions',
StandardAdditions).info_for(a.desc)
h = h.merge(ho)
h = original_item(h) if h[:alias]
return h
end
the line which raises this TypeError: can't convert Symbol into Integer
is the first of info_for(h) that's to say :
raise ArgumentError, "The file '#{h[
ath]}' does not exist!" unless
File.exist?(h[
ath])
clearly i'm in the dark ))
h = Hash.new (same error with h = {} )
h[
puts "# -> h[
info_for(h[
(#{v.class})"}
with :
def info_for(h)
raise ArgumentError, "The file '#{h[
File.exist?(h[
a = MacTypes::Alias.path(h[
ho = OSAX::ScriptingAddition.new('StandardAdditions',
StandardAdditions).info_for(a.desc)
h = h.merge(ho)
h = original_item(h) if h[:alias]
return h
end
the line which raises this TypeError: can't convert Symbol into Integer
is the first of info_for(h) that's to say :
raise ArgumentError, "The file '#{h[
File.exist?(h[
clearly i'm in the dark ))