Class: XamplExample::Description

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Attributes included from EmphAsChild

#emph_child

Attributes included from Xampl::XamplObject

#is_changed, #parents

Class Method Summary collapse

Instance Method Summary collapse

Methods included from EmphAsChild

#add_emph, #init_emph_as_child, #new_emph, #remove_emph

Methods included from Xampl::XamplWithMixedContent

#<<, #add_content, #after_visit_by_element_kind, #before_visit_by_element_kind, #children, #has_mixed_content, #init_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| ... } ⇒ Description

Returns a new instance of Description.

Yields:

  • (_self)

Yield Parameters:



421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/xamplr/handwritten/example.rb', line 421

def initialize
  super
  init_xampl_object

  @kind = nil if not defined? @kind

  init_mixed_content

  init_emph_as_child

  yield(self) if block_given?
  changed
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



396
397
398
# File 'lib/xamplr/handwritten/example.rb', line 396

def kind
  @kind
end

Class Method Details

.module_nameObject



410
411
412
# File 'lib/xamplr/handwritten/example.rb', line 410

def Description.module_name
  @@module_name
end

.nsObject



402
403
404
# File 'lib/xamplr/handwritten/example.rb', line 402

def Description.ns
  @@ns
end

.ns_tagObject



406
407
408
# File 'lib/xamplr/handwritten/example.rb', line 406

def Description.ns_tag
  @@ns_tag
end

.tagObject



398
399
400
# File 'lib/xamplr/handwritten/example.rb', line 398

def Description.tag
  @@tag
end

Instance Method Details

#append_to(other) ⇒ Object



435
436
437
# File 'lib/xamplr/handwritten/example.rb', line 435

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

#attributesObject



455
456
457
# File 'lib/xamplr/handwritten/example.rb', line 455

def attributes
  @@attributes
end

#module_nameObject



451
452
453
# File 'lib/xamplr/handwritten/example.rb', line 451

def module_name
  @@module_name
end

#nsObject



443
444
445
# File 'lib/xamplr/handwritten/example.rb', line 443

def ns
  @@ns
end

#ns_tagObject



447
448
449
# File 'lib/xamplr/handwritten/example.rb', line 447

def ns_tag
  @@ns_tag
end

#tagObject



439
440
441
# File 'lib/xamplr/handwritten/example.rb', line 439

def tag
  @@tag
end