Class: FuseFS::Stat
- Inherits:
-
Object
- Object
- FuseFS::Stat
- Defined in:
- lib/fusefs.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#st_atime ⇒ Object
Returns the value of attribute st_atime.
-
#st_ctime ⇒ Object
Returns the value of attribute st_ctime.
-
#st_gid ⇒ Object
Returns the value of attribute st_gid.
-
#st_mode ⇒ Object
Returns the value of attribute st_mode.
-
#st_mtime ⇒ Object
Returns the value of attribute st_mtime.
-
#st_nlink ⇒ Object
Returns the value of attribute st_nlink.
-
#st_size ⇒ Object
Returns the value of attribute st_size.
-
#st_uid ⇒ Object
Returns the value of attribute st_uid.
Instance Method Summary collapse
-
#initialize(name = 'undefined') ⇒ Stat
constructor
A new instance of Stat.
- #mode_mask ⇒ Object
Constructor Details
#initialize(name = 'undefined') ⇒ Stat
Returns a new instance of Stat.
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/fusefs.rb', line 60 def initialize(name='undefined') @st_mode = 0o755 | mode_mask @st_nlink = 3 @st_size = 0 @st_uid = Process.uid @st_gid = Process.gid @st_mtime = Time.now.to_i @st_atime = Time.now.to_i @st_ctime = Time.now.to_i @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
58 59 60 |
# File 'lib/fusefs.rb', line 58 def name @name end |
#st_atime ⇒ Object
Returns the value of attribute st_atime.
56 57 58 |
# File 'lib/fusefs.rb', line 56 def st_atime @st_atime end |
#st_ctime ⇒ Object
Returns the value of attribute st_ctime.
57 58 59 |
# File 'lib/fusefs.rb', line 57 def st_ctime @st_ctime end |
#st_gid ⇒ Object
Returns the value of attribute st_gid.
54 55 56 |
# File 'lib/fusefs.rb', line 54 def st_gid @st_gid end |
#st_mode ⇒ Object
Returns the value of attribute st_mode.
50 51 52 |
# File 'lib/fusefs.rb', line 50 def st_mode @st_mode end |
#st_mtime ⇒ Object
Returns the value of attribute st_mtime.
55 56 57 |
# File 'lib/fusefs.rb', line 55 def st_mtime @st_mtime end |
#st_nlink ⇒ Object
Returns the value of attribute st_nlink.
51 52 53 |
# File 'lib/fusefs.rb', line 51 def st_nlink @st_nlink end |
#st_size ⇒ Object
Returns the value of attribute st_size.
52 53 54 |
# File 'lib/fusefs.rb', line 52 def st_size @st_size end |
#st_uid ⇒ Object
Returns the value of attribute st_uid.
53 54 55 |
# File 'lib/fusefs.rb', line 53 def st_uid @st_uid end |