Class: Rednode::Bindings::Fs::Stats
- Inherits:
-
Object
- Object
- Rednode::Bindings::Fs::Stats
- Defined in:
- lib/rednode/bindings/fs.rb
Instance Method Summary collapse
- #dev ⇒ Object
-
#initialize(stat) ⇒ Stats
constructor
A new instance of Stats.
- #ino ⇒ Object
- #isDirectory(*a) ⇒ Object
- #isSymbolicLink(*a) ⇒ Object
- #mode ⇒ Object
- #mtime ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize(stat) ⇒ Stats
Returns a new instance of Stats.
143 144 145 |
# File 'lib/rednode/bindings/fs.rb', line 143 def initialize(stat) @stat = stat end |
Instance Method Details
#dev ⇒ Object
167 168 169 |
# File 'lib/rednode/bindings/fs.rb', line 167 def dev @stat.dev end |
#ino ⇒ Object
171 172 173 |
# File 'lib/rednode/bindings/fs.rb', line 171 def ino @stat.ino end |
#isDirectory(*a) ⇒ Object
163 164 165 |
# File 'lib/rednode/bindings/fs.rb', line 163 def isDirectory(*a) @stat.directory? end |
#isSymbolicLink(*a) ⇒ Object
159 160 161 |
# File 'lib/rednode/bindings/fs.rb', line 159 def isSymbolicLink(*a) @stat.symlink? end |
#mode ⇒ Object
155 156 157 |
# File 'lib/rednode/bindings/fs.rb', line 155 def mode @stat.mode end |
#mtime ⇒ Object
151 152 153 |
# File 'lib/rednode/bindings/fs.rb', line 151 def mtime @stat.mtime end |
#size ⇒ Object
147 148 149 |
# File 'lib/rednode/bindings/fs.rb', line 147 def size @stat.size end |