Class: Jabber::Dataforms::XDataTitle
- Inherits:
-
XMPPElement
- Object
- REXML::Element
- XMPPElement
- Jabber::Dataforms::XDataTitle
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb
Overview
Child of XData, contains the title of this Data Form
Instance Method Summary collapse
-
#initialize(title = nil) ⇒ XDataTitle
constructor
A new instance of XDataTitle.
- #title ⇒ Object
- #to_s ⇒ Object
Methods inherited from XMPPElement
class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=
Methods inherited from REXML::Element
#==, #delete_elements, #first_element, #first_element_text, #import, import, #replace_element_text, #typed_add
Constructor Details
#initialize(title = nil) ⇒ XDataTitle
Returns a new instance of XDataTitle.
112 113 114 115 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb', line 112 def initialize(title=nil) super() add_text(title) end |
Instance Method Details
#title ⇒ Object
120 121 122 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb', line 120 def title text end |
#to_s ⇒ Object
117 118 119 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/dataforms/x/data.rb', line 117 def to_s text.to_s end |