Class: DmozSax::Alias
- Inherits:
-
Object
- Object
- DmozSax::Alias
- Defined in:
- lib/dmoz_sax/alias.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path_str) ⇒ Alias
constructor
A new instance of Alias.
- #title ⇒ Object
- #title=(str) ⇒ Object
Constructor Details
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/dmoz_sax/alias.rb', line 3 def path @path end |
Instance Method Details
#title ⇒ Object
8 9 10 |
# File 'lib/dmoz_sax/alias.rb', line 8 def title @path.name end |
#title=(str) ⇒ Object
12 13 14 |
# File 'lib/dmoz_sax/alias.rb', line 12 def title= str @path.name = str end |