Class: Paragraph::CodeBlockMetadata
- Inherits:
-
Object
- Object
- Paragraph::CodeBlockMetadata
- Defined in:
- lib/Models/Paragraph.rb
Instance Attribute Summary collapse
-
#lang ⇒ Object
Returns the value of attribute lang.
Instance Method Summary collapse
-
#initialize(json) ⇒ CodeBlockMetadata
constructor
A new instance of CodeBlockMetadata.
Constructor Details
#initialize(json) ⇒ CodeBlockMetadata
Returns a new instance of CodeBlockMetadata.
54 55 56 |
# File 'lib/Models/Paragraph.rb', line 54 def initialize(json) @lang = json['lang'] end |
Instance Attribute Details
#lang ⇒ Object
Returns the value of attribute lang.
53 54 55 |
# File 'lib/Models/Paragraph.rb', line 53 def lang @lang end |