module PhoneGap::Build::Creatable::ClassMethods
Public Instance Methods
add_to_collection(collection_name, value)
click to toggle source
# File lib/phone_gap/build/creatable.rb, line 30 def add_to_collection(collection_name, value) if self.class_variable_get(collection_name)[self] self.class_variable_get(collection_name)[self] << "@#{value}" else self.class_variable_get(collection_name)[self] = ["@#{value}"] end end
attr_creatable(*args)
click to toggle source
# File lib/phone_gap/build/creatable.rb, line 22 def attr_creatable(*args) args.each { |attribute| add_to_collection('@@creatable_attributes', attribute) } end
attr_updatable(*args)
click to toggle source
# File lib/phone_gap/build/creatable.rb, line 26 def attr_updatable(*args) args.each { |attribute| add_to_collection('@@updatable_attributes', attribute) } end