Class: NoraMark::Page

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, #classes, #content, #first_child, #holders, #ids, #last_child, #name, #next, #no_tag, #parent, #prev, #raw_text

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, #named_params=, #params, #params=, #prepend_child, #raw_text?, #rebuild_children, #remove, #remove_following, #reparent, #replace, #text, #unlink, #wrap

Constructor Details

#initialize(raw_content, line_no) ⇒ Page

Returns a new instance of Page.



176
177
178
179
# File 'lib/nora_mark/parser.kpeg.rb', line 176

def initialize(raw_content, line_no)
  @raw_content = raw_content
  @line_no = line_no
end

Instance Attribute Details

#line_noObject (readonly)

Returns the value of attribute line_no.



181
182
183
# File 'lib/nora_mark/parser.kpeg.rb', line 181

def line_no
  @line_no
end

#page_noObject

Returns the value of attribute page_no.



333
334
335
# File 'lib/nora_mark/node.rb', line 333

def page_no
  @page_no
end

#raw_contentObject (readonly)

Returns the value of attribute raw_content.



180
181
182
# File 'lib/nora_mark/parser.kpeg.rb', line 180

def raw_content
  @raw_content
end