Class: Rundoc::CodeCommand::Raw
- Inherits:
-
Rundoc::CodeCommand
- Object
- Rundoc::CodeCommand
- Rundoc::CodeCommand::Raw
- Defined in:
- lib/rundoc/code_command/raw.rb
Constant Summary
Constants inherited from Rundoc::CodeCommand
Instance Attribute Summary
Attributes inherited from Rundoc::CodeCommand
#command, #contents, #keyword, #original_args, #render_command, #render_result
Instance Method Summary collapse
- #call(env = {}) ⇒ Object
-
#initialize(contents, visible: true) ⇒ Raw
constructor
A new instance of Raw.
- #to_md(env = {}) ⇒ Object
Methods inherited from Rundoc::CodeCommand
Constructor Details
#initialize(contents, visible: true) ⇒ Raw
Returns a new instance of Raw.
4 5 6 7 |
# File 'lib/rundoc/code_command/raw.rb', line 4 def initialize(contents, visible: true) @contents = contents @render_result = visible end |
Instance Method Details
#call(env = {}) ⇒ Object
9 10 11 |
# File 'lib/rundoc/code_command/raw.rb', line 9 def call(env = {}) contents.to_s end |
#to_md(env = {}) ⇒ Object
13 14 15 |
# File 'lib/rundoc/code_command/raw.rb', line 13 def to_md(env = {}) contents.to_s end |