Module: GitDS::FsModelItemClass
Overview
Note: this is a class-method module. It should be extended in a class, not included.
Instance Method Summary collapse
-
#property(name, default = 0, &block) ⇒ Object
Define a property for this ModelItem class.
Methods included from ModelItemClass
#binary_property, #build_path, #create, #create_in_path, #define_db_property, #define_fs_property, #exist?, #fill, #fill_properties, #ident, #ident_key, #instance_path, #link_property, #list, #list_in_path, #name, #path, #properties
Instance Method Details
#property(name, default = 0, &block) ⇒ Object
Define a property for this ModelItem class. The property will exist in the DB and on the filesystem.
36 37 38 |
# File 'lib/git-ds/model/fs_item.rb', line 36 def property(name, default=0, &block) define_fs_property(name, default, &block) end |