class Qiita::Markdown::Filters::CustomBlock::Metadata

Attributes

subtype[R]
type[R]

Public Class Methods

new(text) click to toggle source

@param text [String, nil] @note Attribute ‘type` will be nil if `text` is nil @note Attribute `subtype` will be nil if `text` does not include white space.

# File lib/qiita/markdown/filters/custom_block.rb, line 26
def initialize(text)
  # Discared after the second word.
  @type, @subtype = text && text.split(" ")
end