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.
116 117 118 119 120 |
# File 'lib/term-slides.rb', line 116 def initialize renderer, format, content @renderer = renderer @format = format @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
115 116 117 |
# File 'lib/term-slides.rb', line 115 def content @content end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
115 116 117 |
# File 'lib/term-slides.rb', line 115 def format @format end |
Instance Method Details
#render ⇒ Object
121 122 123 |
# File 'lib/term-slides.rb', line 121 def render @renderer.render_code self end |