Class: DaimonMarkdown::Plugin::Base
- Inherits:
-
Object
- Object
- DaimonMarkdown::Plugin::Base
- Includes:
- CGI::Util
- Defined in:
- lib/daimon_markdown/plugin/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(doc, node, result, context) ⇒ Base
constructor
A new instance of Base.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/daimon_markdown/plugin/base.rb', line 8 def context @context end |
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
8 9 10 |
# File 'lib/daimon_markdown/plugin/base.rb', line 8 def doc @doc end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
8 9 10 |
# File 'lib/daimon_markdown/plugin/base.rb', line 8 def node @node end |
#result ⇒ Object (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 |