Created
February 13, 2013 00:06
-
-
Save forced-request/4774831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FunctionParser | |
def test | |
# How do I access @vals from sim.rb? | |
# puts @vals.inspect | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.dirname(__FILE__) + '/functions' | |
@vals = [3,4,5] | |
f = FunctionParser.new | |
f.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think it sould work :( :
class FunctionParser
def test(vals)
vals.each do |foo|
end
# How do I access @vals from sim.rb?
# puts @vals.inspect
end
end
require File.dirname(FILE) + '/functions'
@vals = [3,4,5]
f = FunctionParser.new
f.test(@vals)