Sha256: 066f76bbf7ffae67395c543db1b0b44797e3bbeeb3de12668da042a63f0375d6

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

# = Content 
#
# Content Management Foundation
#
# code: 
# * George Moschovitis  <gm@navel.gr>
#
# (c) 2004 Navel, all rights reserved.
# $Id$

require 'nitro/markup'

module N

# = BaseContent
#
# The foundamental Content Unit.
#
module BaseContent
	include N::Markup

	prop_accessor :title, String
	prop_accessor :body, String, :markup => true, :ui => :textarea
end

# = Content
#
# The foundamental Content Unit.
#
#--
# THINK: rename this to Entity?
#++
module Content
	include N::BaseContent
	prop_accessor :ctime, Time
	prop_accessor :mtime, Time

	def initialize(*args)
		@ctime = @mtime = Time.now
	end
end

# = Category
#
class Category 
	include N::BaseContent
end

# = ACL
#
# Unix style permissions.
#
module ACL
	# bits:
	# 0, 1, 2: owner read, write, execute
	# 3, 4, 5: group read, write, execute
	# 6, 7, 8: other read, write, execute
	prop_accessor :permissions
end

end # module

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.7.0 lib/parts/content.rb