Sha256: c68738c6598dff4a5d5db1210c0e42f8618096a5e2de72a88daa8f25b92f8de7
Contents?: true
Size: 947 Bytes
Versions: 17
Compression:
Stored size: 947 Bytes
Contents
require 'rabbit/element/text-block-element' module Rabbit module Element class Container include ContainerElement include BlockElement end class BlockQuote include ContainerElement include BlockElement include BlockHorizontalCentering attr_reader :cite, :title def initialize(elems=[], prop={}) super(elems) %w(cite title).each do |name| instance_variable_set("@#{name}", prop[name]) end end def to_html(generator) "<blockquote>#{super}</blockquote>" end end class Paragraph include TextBlockElement def text "#{super}\n" end def to_rd text end def to_html(generator) "<p>\n#{super}\n</p>" end end class WaitBlock include ContainerElement include BlockElement def have_wait_tag? true end end end end
Version data entries
17 entries across 17 versions & 1 rubygems