Class: NoraMark::CodeInline
- Defined in:
- lib/nora_mark/node.rb,
lib/nora_mark/parser.kpeg.rb
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#line_no ⇒ Object
readonly
Returns the value of attribute line_no.
-
#named_params ⇒ Object
readonly
Returns the value of attribute named_params.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Node
#attrs, #body_empty, #first_child, #holders, #last_child, #name, #next, #no_tag, #parent, #prev, #raw_content
Instance Method Summary collapse
-
#initialize(ids, classes, params, named_params, content, line_no) ⇒ CodeInline
constructor
A new instance of CodeInline.
- #raw_text ⇒ Object
- #raw_text? ⇒ Boolean
- #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=, #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
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
47 48 49 |
# File 'lib/nora_mark/parser.kpeg.rb', line 47 def classes @classes end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
50 51 52 |
# File 'lib/nora_mark/parser.kpeg.rb', line 50 def content @content end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
46 47 48 |
# File 'lib/nora_mark/parser.kpeg.rb', line 46 def ids @ids end |
#line_no ⇒ Object (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_params ⇒ Object (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 |
#params ⇒ Object (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_text ⇒ Object
385 386 387 |
# File 'lib/nora_mark/node.rb', line 385 def raw_text true end |
#raw_text? ⇒ Boolean
389 390 391 |
# File 'lib/nora_mark/node.rb', line 389 def raw_text? true end |
#text ⇒ Object
393 394 395 |
# File 'lib/nora_mark/node.rb', line 393 def text @content end |