Class: Medusa::Node
- Inherits:
-
Object
- Object
- Medusa::Node
- Defined in:
- lib/medusa/node.rb
Overview
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
- #load ⇒ Object
-
#name ⇒ String
Last path component of #relative_key.
- #relative_key ⇒ String
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
8 9 10 |
# File 'lib/medusa/node.rb', line 8 def initialize @id = @uuid = nil end |
Instance Method Details
#load ⇒ Object
27 28 29 |
# File 'lib/medusa/node.rb', line 27 def load raise 'Subclasses must implement load()' end |
#name ⇒ String
Returns Last path component of #relative_key.
15 16 17 |
# File 'lib/medusa/node.rb', line 15 def name ::File.basename(self.relative_key) end |
#relative_key ⇒ String
22 23 24 25 |
# File 'lib/medusa/node.rb', line 22 def relative_key load @relative_key end |