class HtmlSlicer::Processor

Attributes

content[RW]

Public Class Methods

new(stuff = nil) click to toggle source
# File lib/html_slicer/processor.rb, line 6
def initialize(stuff = nil)
  @content = case stuff
  when String then stuff
  else
    if stuff.respond_to?(:to_s)
      stuff.to_s
    else
      raise(TypeError, "String or responsible :to_s object expected, #{stuff.class} passed.")
    end
  end
end

Public Instance Methods

export() click to toggle source
# File lib/html_slicer/processor.rb, line 21
def export
  make
end
make() click to toggle source
# File lib/html_slicer/processor.rb, line 18
def make
end