Class: Noodall::Permalink
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Permalink
constructor
A new instance of Permalink.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ Permalink
Returns a new instance of Permalink.
3 4 5 6 7 8 9 |
# File 'lib/noodall/permalink.rb', line 3 def initialize(*args) if args.length > 1 super args else super args.first.to_s.split('/') end end |