Class: Shenandoah::Server::IndexEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/shenandoah/server.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



148
149
150
# File 'lib/shenandoah/server.rb', line 148

def <=>(other)
  self.test_html <=> other.test_html
end

#hrefObject



140
141
142
# File 'lib/shenandoah/server.rb', line 140

def href
  '/' + ["spec", section, test_html].reject { |s| s == '.' }.join('/')
end

#nameObject



144
145
146
# File 'lib/shenandoah/server.rb', line 144

def name
  test_html.sub(/.html$/, '')
end