Module: HtmlSlicer::Helpers::Link

Included in:
FirstSlice, LastSlice, NextSlice, PrevSlice, Slice
Defined in:
lib/html_slicer/helpers/tags.rb

Overview

Tag that contains a link

Instance Method Summary collapse

Instance Method Details

#sliceObject

target slice number



42
43
44
# File 'lib/html_slicer/helpers/tags.rb', line 42

def slice
  raise 'Override slice with the actual slice value to be a slice.'
end

#to_s(locals = {}) ⇒ Object

:nodoc:



49
50
51
# File 'lib/html_slicer/helpers/tags.rb', line 49

def to_s(locals = {}) #:nodoc:
  super locals.merge(:url => url)
end

#urlObject

the link’s href



46
47
48
# File 'lib/html_slicer/helpers/tags.rb', line 46

def url
  slice_url_for slice
end