Class: DaimonMarkdown::Plugin::Base

Inherits:
Object
  • Object
show all
Includes:
CGI::Util
Defined in:
lib/daimon_markdown/plugin/base.rb

Direct Known Subclasses

Chat, Figure, Math, TableOfContents

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc, node, result, context) ⇒ Base



10
11
12
13
14
15
# File 'lib/daimon_markdown/plugin/base.rb', line 10

def initialize(doc, node, result, context)
  @doc = doc
  @node = node
  @result = result
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



8
9
10
# File 'lib/daimon_markdown/plugin/base.rb', line 8

def context
  @context
end

#docObject (readonly)

Returns the value of attribute doc.



8
9
10
# File 'lib/daimon_markdown/plugin/base.rb', line 8

def doc
  @doc
end

#nodeObject (readonly)

Returns the value of attribute node.



8
9
10
# File 'lib/daimon_markdown/plugin/base.rb', line 8

def node
  @node
end

#resultObject (readonly)

Returns the value of attribute result.



8
9
10
# File 'lib/daimon_markdown/plugin/base.rb', line 8

def result
  @result
end

Instance Method Details

#call(*args) ⇒ Object



17
18
19
# File 'lib/daimon_markdown/plugin/base.rb', line 17

def call(*args)
  raise "Implement this method in subclass"
end