Class: ReadmeSpec::Markdown::Code
- Inherits:
-
Object
- Object
- ReadmeSpec::Markdown::Code
- Defined in:
- lib/readme_spec.rb
Instance Method Summary collapse
-
#initialize(pre_text) ⇒ Code
constructor
A new instance of Code.
- #language ⇒ Object
- #text ⇒ Object
Constructor Details
#initialize(pre_text) ⇒ Code
84 85 86 |
# File 'lib/readme_spec.rb', line 84 def initialize(pre_text) @pre_text = pre_text end |
Instance Method Details
#language ⇒ Object
92 93 94 |
# File 'lib/readme_spec.rb', line 92 def language @pre_text[:language] end |
#text ⇒ Object
88 89 90 |
# File 'lib/readme_spec.rb', line 88 def text @pre_text[:code] end |