Class: NoraMark::CodeInline

Inherits:
Node
  • Object
show all
Defined in:
lib/nora_mark/node.rb,
lib/nora_mark/parser.kpeg.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#attrs, #body_empty, #first_child, #holders, #last_child, #name, #next, #no_tag, #parent, #prev, #raw_content

Instance Method Summary collapse

Methods inherited from Node

#_find_node, #_match?, #_remove_internal, #add_attr, #after, #all_nodes, #ancestors, #append_child, #before, #build_selector, #children, #children=, #children_empty?, #children_replaced, #clone, #each, #find_node, #match?, #modify_selector, #named_params=, #params=, #prepend_child, #rebuild_children, #remove, #remove_following, #reparent, #replace, #unlink, #wrap

Constructor Details

#initialize(ids, classes, params, named_params, content, line_no) ⇒ CodeInline

Returns a new instance of CodeInline.



38
39
40
41
42
43
44
45
# File 'lib/nora_mark/parser.kpeg.rb', line 38

def initialize(ids, classes, params, named_params, content, line_no)
  @ids = ids
  @classes = classes
  @params = params
  @named_params = named_params
  @content = content
  @line_no = line_no
end

Instance Attribute Details

#classesObject (readonly)

Returns the value of attribute classes.



47
48
49
# File 'lib/nora_mark/parser.kpeg.rb', line 47

def classes
  @classes
end

#contentObject (readonly)

Returns the value of attribute content.



50
51
52
# File 'lib/nora_mark/parser.kpeg.rb', line 50

def content
  @content
end

#idsObject (readonly)

Returns the value of attribute ids.



46
47
48
# File 'lib/nora_mark/parser.kpeg.rb', line 46

def ids
  @ids
end

#line_noObject (readonly)

Returns the value of attribute line_no.



51
52
53
# File 'lib/nora_mark/parser.kpeg.rb', line 51

def line_no
  @line_no
end

#named_paramsObject (readonly)

Returns the value of attribute named_params.



49
50
51
# File 'lib/nora_mark/parser.kpeg.rb', line 49

def named_params
  @named_params
end

#paramsObject (readonly)

Returns the value of attribute params.



48
49
50
# File 'lib/nora_mark/parser.kpeg.rb', line 48

def params
  @params
end

Instance Method Details

#raw_textObject



385
386
387
# File 'lib/nora_mark/node.rb', line 385

def raw_text
  true
end

#raw_text?Boolean

Returns:

  • (Boolean)


389
390
391
# File 'lib/nora_mark/node.rb', line 389

def raw_text?
  true
end

#textObject



393
394
395
# File 'lib/nora_mark/node.rb', line 393

def text
  @content
end