Class: XamplExample::Emph

Inherits:
Object
  • Object
show all
Includes:
Xampl::XamplObject, Xampl::XamplWithSimpleContent
Defined in:
lib/xamplr/handwritten/example.rb,
lib/xamplr/handwritten/hand-example.rb

Constant Summary collapse

@@tag =
"emph"
@@ns =
"http://xampl.com/example"
@@ns_tag =
"{http://xampl.com/example}emph"
@@module_name =
"XamplExample"
@@attributes =
[ ]

Instance Attribute Summary

Attributes included from Xampl::XamplObject

#is_changed, #parents

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Xampl::XamplWithSimpleContent

#<<, #_content, #_content=, #add_content, #after_visit_by_element_kind, #before_visit_by_element_kind, #children, #has_mixed_content, #test_to_xml, #test_to_xml_internal, #visit_by_element_kind

Methods included from Xampl::XamplObject

#===, #accessed, #add_parent, #changed, #changes_accepted, #compare_xampl, #copy_xampl, from_ruby, from_string, from_xml_file, from_xml_string, #ignore_when_no_index, #init_attributes, #init_hook, #init_xampl_object, #invalid, #invalidate, lookup_preferred_ns_prefix, #mark_changed_deep, #note_add_child, #note_add_to_parent, #note_adding_text_content, #note_attributes_initialised, #note_closed, #note_created, #note_initialise_attributes_with, #note_invalidate, #note_replacing, ns_preferred_prefix, #persist, #persist_required, #pp_xml, realise_from_xml_string, recover_from_string, #to_ruby, #to_xml

Constructor Details

#initialize {|_self| ... } ⇒ Emph

Returns a new instance of Emph.

Yields:

  • (_self)

Yield Parameters:



491
492
493
494
495
496
497
498
499
# File 'lib/xamplr/handwritten/example.rb', line 491

def initialize
  super
  init_xampl_object



  yield(self) if block_given?
  changed
end

Class Method Details

.module_nameObject



484
485
486
# File 'lib/xamplr/handwritten/example.rb', line 484

def Emph.module_name
  @@module_name
end

.nsObject



476
477
478
# File 'lib/xamplr/handwritten/example.rb', line 476

def Emph.ns
  @@ns
end

.ns_tagObject



480
481
482
# File 'lib/xamplr/handwritten/example.rb', line 480

def Emph.ns_tag
  @@ns_tag
end

.tagObject



472
473
474
# File 'lib/xamplr/handwritten/example.rb', line 472

def Emph.tag
  @@tag
end

Instance Method Details

#append_to(other) ⇒ Object



501
502
503
# File 'lib/xamplr/handwritten/example.rb', line 501

def append_to(other)
  other.add_emph(self)
end

#attributesObject



521
522
523
# File 'lib/xamplr/handwritten/example.rb', line 521

def attributes
  @@attributes
end

#module_nameObject



517
518
519
# File 'lib/xamplr/handwritten/example.rb', line 517

def module_name
  @@module_name
end

#nsObject



509
510
511
# File 'lib/xamplr/handwritten/example.rb', line 509

def ns
  @@ns
end

#ns_tagObject



513
514
515
# File 'lib/xamplr/handwritten/example.rb', line 513

def ns_tag
  @@ns_tag
end

#tagObject



505
506
507
# File 'lib/xamplr/handwritten/example.rb', line 505

def tag
  @@tag
end