class LowCarb::Obj

Attributes

name[RW]
web_addr[RW]

Public Class Methods

all() click to toggle source
# File lib/low_carb/low_carb_obj.rb, line 25
def self.all 
    @@all
end
get_data() click to toggle source
# File lib/low_carb/low_carb_obj.rb, line 18
def self.get_data 
    10.times do 
        @@all << self.new
    end 
end
new() click to toggle source
# File lib/low_carb/low_carb_obj.rb, line 10
def initialize
    
    
    
  
end

Public Instance Methods

save() click to toggle source
# File lib/low_carb/low_carb_obj.rb, line 29
def save 
  @@all << self 
  
end