class OSX::ACL::Entry
Attributes
components[RW]
Public Class Methods
from_text(text)
click to toggle source
# File lib/acl/entry.rb, line 8 def self.from_text(text) new.tap {|entry| entry.components = text.split(":") } end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/acl/entry.rb, line 12 def <=>(other) components <=> other.components end
assignment()
click to toggle source
# File lib/acl/entry.rb, line 36 def assignment ACL::Assignment.new(assignment_components) end
assignment_components()
click to toggle source
# File lib/acl/entry.rb, line 40 def assignment_components components[0..-3] end
inherited=(should_inherit)
click to toggle source
# File lib/acl/entry.rb, line 20 def inherited=(should_inherit) if should_inherit && !inherited? rules << "inherited" elsif inherited? && !should_inherit rules.delete("inherited") end end
inherited?()
click to toggle source
# File lib/acl/entry.rb, line 28 def inherited? rules.include? "inherited" end
orphaned?()
click to toggle source
# File lib/acl/entry.rb, line 32 def orphaned? assignment.orphan? end
permissions()
click to toggle source
# File lib/acl/entry.rb, line 44 def permissions components.last.split(",") end
rules()
click to toggle source
# File lib/acl/entry.rb, line 48 def rules components[-2].split(",") end
to_s()
click to toggle source
# File lib/acl/entry.rb, line 16 def to_s components.join(":") end