Method: Rush::Entry#access
- Defined in:
- lib/rush/entry.rb
#access ⇒ Object
Returns a hash with up to nine values, combining user/group/other with read/write/execute. The key is omitted if the value is false.
Examples:
entry.access # -> { :user_can_read => true, :user_can_write => true, :group_can_read => true }
entry.access[:other_can_read] # -> true or nil
167 168 169 |
# File 'lib/rush/entry.rb', line 167 def access Rush::Access.new.from_octal(stat[:mode]).display_hash end |