Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created July 31, 2013 17:39
Show Gist options
  • Save kejadlen/6124265 to your computer and use it in GitHub Desktop.
Save kejadlen/6124265 to your computer and use it in GitHub Desktop.
class Foo
attr_reader :input
def initialize(input)
@input = input
end
def bar
puts input
end
end
if __FILE__ == $0
input = ARGV.shift
foo = Foo.new(input)
foo.bar
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment