Class: MarkdownIt::RulesCore::StateCore

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-markdown-it/rules_core/state_core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, md, env) ⇒ StateCore




10
11
12
13
14
15
16
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 10

def initialize(src, md, env)
  @src        = src
  @env        = env
  @tokens     = []
  @inlineMode = false
  @md         = md    # link to parser instance
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



7
8
9
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 7

def env
  @env
end

#inlineModeObject

Returns the value of attribute inlineMode.



7
8
9
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 7

def inlineMode
  @inlineMode
end

#mdObject

Returns the value of attribute md.



7
8
9
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 7

def md
  @md
end

#srcObject

Returns the value of attribute src.



7
8
9
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 7

def src
  @src
end

#tokensObject

Returns the value of attribute tokens.



7
8
9
# File 'lib/motion-markdown-it/rules_core/state_core.rb', line 7

def tokens
  @tokens
end