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
-
#slice ⇒ Object
target slice number.
-
#to_s(locals = {}) ⇒ Object
:nodoc:.
-
#url ⇒ Object
the link’s href.
Instance Method Details
#slice ⇒ Object
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 |
#url ⇒ Object
the link’s href
46 47 48 |
# File 'lib/html_slicer/helpers/tags.rb', line 46 def url slice_url_for slice end |