Class: PVN::FSElement
- Inherits:
-
Pathname
- Object
- Pathname
- PVN::FSElement
- Includes:
- Loggable
- Defined in:
- lib/pvn/io/fselement.rb
Overview
A filesystem element (directory or file).
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ FSElement
constructor
A new instance of FSElement.
- #line_count ⇒ Object
Constructor Details
#initialize(name) ⇒ FSElement
Returns a new instance of FSElement.
13 14 15 16 |
# File 'lib/pvn/io/fselement.rb', line 13 def initialize name @name = name super end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/pvn/io/fselement.rb', line 11 def name @name end |
Instance Method Details
#line_count ⇒ Object
18 19 20 |
# File 'lib/pvn/io/fselement.rb', line 18 def line_count readlines.size end |