Class: Inkcite::Renderer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/inkcite/renderer/base.rb

Constant Summary collapse

BACKGROUND_COLOR =

Constants for style and property names with dashes in them.

:'background-color'
BACKGROUND_GRADIENT =
:'background-gradient'
BACKGROUND_IMAGE =
:'background-image'
BACKGROUND_REPEAT =
:'background-repeat'
BACKGROUND_POSITION =
:'background-position'
BACKGROUND_SIZE =
:'background-size'
BORDER_BOTTOM =
:'border-bottom'
BORDER_COLLAPSE =
:'border-collapse'
BORDER_LEFT =
:'border-left'
BORDER_RADIUS =
:'border-radius'
BORDER_RIGHT =
:'border-right'
BORDER_SPACING =
:'border-spacing'
BORDER_TOP =
:'border-top'
BOX_SHADOW =
:'box-shadow'
FONT_FAMILY =
:'font-family'
FONT_SIZE =
:'font-size'
FONT_WEIGHT =
:'font-weight'
LETTER_SPACING =
:'letter-spacing'
LINE_HEIGHT =
:'line-height'
:'#link'
MARGIN =
:'margin'
MARGIN_BOTTOM =
:'margin-bottom'
MARGIN_LEFT =
:'margin-left'
MARGIN_RIGHT =
:'margin-right'
MARGIN_TOP =
:'margin-top'
MAX_WIDTH =
:'max-width'
PADDING_X =
:'padding-x'
PADDING_Y =
:'padding-y'
TEXT_ALIGN =
:'text-align'
TEXT_DECORATION =
:'text-decoration'
TEXT_SHADOW =
:'text-shadow'
TEXT_SHADOW_BLUR =
:'shadow-blur'
TEXT_SHADOW_OFFSET =
:'shadow-offset'
VERTICAL_ALIGN =
:'vertical-align'
WEBKIT_ANIMATION =
:'-webkit-animation'
WHITE_SPACE =
:'white-space'
DIRECTIONS =

CSS direction suffixes including nil/empty for convenience.

[ nil, :top, :right, :bottom, :left]
DIMENSIONS =

Attribute and CSS dimensions

[:width, :height]
POUND_SIGN =

Common value declarations

'#'
NONE =
'none'
ZERO_WIDTH_SPACE =

Zero-width space character

'​'
ZERO_WIDTH_NON_BREAKING_SPACE =

Zero-width non-breaking character

''

Instance Method Summary collapse

Instance Method Details

#render(tag, opt, ctx) ⇒ Object



59
60
61
# File 'lib/inkcite/renderer/base.rb', line 59

def render tag, opt, ctx
  raise "Not implemented: #{tag} #{opts}"
end