Class: Paragraph::CodeBlockMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/Models/Paragraph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#langObject

Returns the value of attribute lang.



53
54
55
# File 'lib/Models/Paragraph.rb', line 53

def lang
  @lang
end