Class: TD::Types::PageBlock::Preformatted

Inherits:
TD::Types::PageBlock show all
Defined in:
lib/tdlib/types/page_block/preformatted.rb

Overview

A preformatted text paragraph.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#languageString

Programming language for which the text should be formatted.

Returns:

  • (String)

    the current value of language



6
7
8
# File 'lib/tdlib/types/page_block/preformatted.rb', line 6

def language
  @language
end

#textTD::Types::RichText

Paragraph text.

Returns:



6
7
8
# File 'lib/tdlib/types/page_block/preformatted.rb', line 6

def text
  @text
end