Class: DmozSax::Alias

Inherits:
Object
  • Object
show all
Defined in:
lib/dmoz_sax/alias.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_str) ⇒ Alias

Returns a new instance of Alias.



4
5
6
# File 'lib/dmoz_sax/alias.rb', line 4

def initialize path_str
  @path = DmozSax::Path.new path_str
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/dmoz_sax/alias.rb', line 3

def path
  @path
end

Instance Method Details

#titleObject



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