category_tree.rb
# Returns bool if the CategoryTree contains the passed category name
Returns bool if the CategoryTree contains the passed category name
Returns bool if the CategoryTree contains the passed category name
def contains?(category_name)
    if @root.find_node(category_name).nil?
      return false
    else
      return true
    end
  end
def contains? ( category_name ) if @root . find_node ( category_name ) . nil? return false else return true end end
Returns bool if the CategoryTree contains the passed category name
Returns bool if the CategoryTree contains the passed category name
category_name