Class: NoraMark::Text
- Defined in:
- lib/nora_mark/node.rb,
lib/nora_mark/parser.kpeg.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#line_no ⇒ Object
readonly
Returns the value of attribute line_no.
-
#noescape ⇒ Object
Returns the value of attribute noescape.
Attributes inherited from Node
#attrs, #body_empty, #classes, #first_child, #holders, #ids, #last_child, #name, #next, #no_tag, #parent, #prev, #raw_content, #raw_text
Instance Method Summary collapse
-
#initialize(content, line_no) ⇒ Text
constructor
A new instance of Text.
- #reparent ⇒ Object
- #text ⇒ Object
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, #replace, #unlink, #wrap
Constructor Details
#initialize(content, line_no) ⇒ Text
Returns a new instance of Text.
242 243 244 245 |
# File 'lib/nora_mark/parser.kpeg.rb', line 242 def initialize(content, line_no) @content = content @line_no = line_no end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
246 247 248 |
# File 'lib/nora_mark/parser.kpeg.rb', line 246 def content @content end |
#line_no ⇒ Object (readonly)
Returns the value of attribute line_no.
247 248 249 |
# File 'lib/nora_mark/parser.kpeg.rb', line 247 def line_no @line_no end |
#noescape ⇒ Object
Returns the value of attribute noescape.
374 375 376 |
# File 'lib/nora_mark/node.rb', line 374 def noescape @noescape end |
Instance Method Details
#reparent ⇒ Object
375 376 377 |
# File 'lib/nora_mark/node.rb', line 375 def reparent # do nothing end |
#text ⇒ Object
379 380 381 |
# File 'lib/nora_mark/node.rb', line 379 def text @content end |