Class: Markbridge::Parsers::BBCode::Handlers::CodeHandler

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

Overview

Examples:

# [code=python]
# def hello_world
#   puts "hi"
# end
# [/code]

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

#initializeCodeHandler

Returns a new instance of CodeHandler.



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

def initialize
  super(AST::Code)
end