Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/agent_xmpp/patches/object.rb
Instance Method Summary (collapse)
-
- (Object) define_meta_class_method(name, &blk)
.......................................................................................................
-
- (Object) to_x_data(type = 'result')
.......................................................................................................
Instance Method Details
- (Object) define_meta_class_method(name, &blk)
.......................................................................................................
10 11 12 |
# File 'lib/agent_xmpp/patches/object.rb', line 10 def (name, &blk) (class << self; self; end).instance_eval {define_method(name, &blk)} end |
- (Object) to_x_data(type = 'result')
.......................................................................................................
5 6 7 |
# File 'lib/agent_xmpp/patches/object.rb', line 5 def to_x_data(type='result') AgentXmpp::Xmpp::XData.new(type).add_field_with_value(nil, to_s) end |