Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

Scope

Fancy Scope
1
2
3
4
5
6
7
8
9
10
class Whatever
  def add
    add_junk(new_junk) #this just feeds into the next method
  end

  def add_junk(new_junk)
    @junk << new_junk
    new_junk.owner = self
  end
end

I need to understand that feeding into the 2nd method better

Comments