Class: Maglev::ContextPreview
- Inherits:
-
Object
- Object
- Maglev::ContextPreview
- Defined in:
- lib/maglev/context_preview.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, metadata:) ⇒ ContextPreview
constructor
A new instance of ContextPreview.
Constructor Details
#initialize(text:, metadata:) ⇒ ContextPreview
Returns a new instance of ContextPreview.
7 8 9 10 11 |
# File 'lib/maglev/context_preview.rb', line 7 def initialize(text:, metadata:) @text = text @metadata = .freeze freeze end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/maglev/context_preview.rb', line 5 def @metadata end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/maglev/context_preview.rb', line 5 def text @text end |