Class: VivlioStarter::CLI::PreProcessCommands::MarkdownTransformer::FancyMarker

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/pre_process/markdown_transformer.rb

Overview

リストマーカー 1 行ぶんの解析結果。 token はマーカー中身の原文('a' / 'IV' / '3')、gap はマーカー直後の空白 (2 スペース規則の判定に使う)、body は項目本文。 ul マーカー(- * +)は style / separator / token / value が nil。

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def body
  @body
end

#gapObject (readonly)

Returns the value of attribute gap

Returns:

  • (Object)

    the current value of gap



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def gap
  @gap
end

#indentObject (readonly)

Returns the value of attribute indent

Returns:

  • (Object)

    the current value of indent



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def indent
  @indent
end

#list_typeObject (readonly)

Returns the value of attribute list_type

Returns:

  • (Object)

    the current value of list_type



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def list_type
  @list_type
end

#separatorObject (readonly)

Returns the value of attribute separator

Returns:

  • (Object)

    the current value of separator



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def separator
  @separator
end

#styleObject (readonly)

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def style
  @style
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def token
  @token
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



705
706
707
# File 'lib/vivlio_starter/cli/pre_process/markdown_transformer.rb', line 705

def value
  @value
end