```
$ cat def-after-use.rb
```
```ruby
doit

def doit
    puts "doing it"
end
```
```
$ ruby def-after-use.rb
def-after-use.rb:1:in `<main>': undefined local variable or method `doit' for main:Object (NameError)
```