Class: HtmlSlicer::Helpers::Slice

Inherits:
Tag
  • Object
show all
Includes:
Link
Defined in:
lib/html_slicer/helpers/tags.rb

Overview

A slice

Instance Method Summary collapse

Methods included from Link

#url

Methods inherited from Tag

#initialize, #slice_url_for

Constructor Details

This class inherits a constructor from HtmlSlicer::Helpers::Tag

Instance Method Details

#sliceObject

target slice number



58
59
60
# File 'lib/html_slicer/helpers/tags.rb', line 58

def slice
  @options[:slice]
end

#to_s(locals = {}) ⇒ Object

:nodoc:



61
62
63
# File 'lib/html_slicer/helpers/tags.rb', line 61

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