Class: TermSlides::Code
- Inherits:
-
Object
- Object
- TermSlides::Code
- Defined in:
- lib/term-slides.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(renderer, format, content) ⇒ Code
constructor
A new instance of Code.
- #render ⇒ Object
Constructor Details
#initialize(renderer, format, content) ⇒ Code
Returns a new instance of Code.
118 119 120 121 122 |
# File 'lib/term-slides.rb', line 118 def initialize renderer, format, content @renderer = renderer @format = format @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
117 118 119 |
# File 'lib/term-slides.rb', line 117 def content @content end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
117 118 119 |
# File 'lib/term-slides.rb', line 117 def format @format end |
Instance Method Details
#render ⇒ Object
123 124 125 |
# File 'lib/term-slides.rb', line 123 def render @renderer.render_code self end |