Class: Markbridge::Parsers::BBCode::Handlers::ImageHandler

Inherits:
RawHandler show all
Defined in:
lib/markbridge/parsers/bbcode/handlers/image_handler.rb

Overview

Handler for IMG tags Supports:

  • img]url[/img
  • img=100x100]url[/img
  • img width=100]url[/img
  • img width=100 height=50]url[/img

Instance Attribute Summary

Attributes inherited from RawHandler

#element_class

Attributes inherited from BaseHandler

#element_class

Instance Method Summary collapse

Methods inherited from RawHandler

#on_close, #on_open

Methods inherited from BaseHandler

#auto_closeable?, #on_close, #on_open

Constructor Details

#initializeImageHandler

Returns a new instance of ImageHandler.



14
15
16
# File 'lib/markbridge/parsers/bbcode/handlers/image_handler.rb', line 14

def initialize
  super(AST::Image)
end