Class: Unmagic::Browser::Console::Code
- Defined in:
- lib/unmagic/browser/console/values.rb
Overview
Source the renderer should syntax-highlight.
Instance Attribute Summary collapse
-
#language ⇒ String
readonly
The Rouge lexer to highlight with.
Attributes inherited from Tagged
Instance Method Summary collapse
-
#initialize(value, language:, name: language) ⇒ Code
constructor
A new instance of Code.
Constructor Details
#initialize(value, language:, name: language) ⇒ Code
Returns a new instance of Code.
30 31 32 33 |
# File 'lib/unmagic/browser/console/values.rb', line 30 def initialize(value, language:, name: language) super(value, name: name) @language = language end |
Instance Attribute Details
#language ⇒ String (readonly)
Returns the Rouge lexer to highlight with.
36 37 38 |
# File 'lib/unmagic/browser/console/values.rb', line 36 def language @language end |