vendor/plugins/facebooker/lib/facebooker/model.rb
##
# Instantiate a new instance of the class into which we are included and populate that instance's
# attributes given the provided Hash.  Key names in the Hash should map to attribute names on the model.
Instantiate a new instance of the class into which we are included and populate that instance's
attributes given the provided Hash.  Key names in the Hash should map to attribute names on the model.
Instantiate a new instance of the class into which we are included and populate that instance ' s attributes given the provided Hash . Key names in the Hash should map to attribute names on the model .
def id_is(attribute)
        (file, line) = caller.first.split(':')
        class_eval(<<-EOS, file, line.to_i)
        def #{attribute}=(value)
          @#{attribute} = value.to_i
        end
        attr_reader #{attribute.inspect}
        alias :id #{attribute.inspect}
        alias :id= #{"#{attribute}=".to_sym.inspect}
        EOS
      end
def id_is ( attribute ) ( file , line ) = caller . first . split ( ':' ) class_eval ( <<-EOS , file , line . to_i ) 
        def  #{ attribute } =(value)
          @ #{ attribute }  = value.to_i
        end

        attr_reader  #{ attribute . inspect } 
        alias :id  #{ attribute . inspect } 
        alias :id=  #{ "#{attribute}=" . to_sym . inspect } EOS end
Instantiate a new instance of the class into which we are included and populate that instance's
attributes given the provided Hash.
Instantiate a new instance of the class into which we are included and populate that instance ' s attributes given the provided Hash .
attribute
<not_specific>