Module: Skype::AbstractObject::Get
- Included in:
- Skype, Skype::AbstractObject
- Defined in:
- lib/skype/object.rb
Instance Attribute Summary collapse
-
#property2callback ⇒ Object
readonly
Returns the value of attribute property2callback.
-
#property2symbol ⇒ Object
readonly
Returns the value of attribute property2symbol.
Instance Method Summary collapse
- #def_parser(sym, property = sym.to_s.upcase, &callback) ⇒ Object
-
#notice(methodName, skypeProperty, &callBack) ⇒ Object
end.
Instance Attribute Details
#property2callback ⇒ Object (readonly)
Returns the value of attribute property2callback.
68 69 70 |
# File 'lib/skype/object.rb', line 68 def property2callback @property2callback end |
#property2symbol ⇒ Object (readonly)
Returns the value of attribute property2symbol.
68 69 70 |
# File 'lib/skype/object.rb', line 68 def property2symbol @property2symbol end |
Instance Method Details
#def_parser(sym, property = sym.to_s.upcase, &callback) ⇒ Object
64 65 66 |
# File 'lib/skype/object.rb', line 64 def def_parser sym, property=sym.to_s.upcase, &callback notice sym, property, &callback end |
#notice(methodName, skypeProperty, &callBack) ⇒ Object
end
54 55 56 57 58 59 60 61 62 |
# File 'lib/skype/object.rb', line 54 def notice methodName, skypeProperty, &callBack if Skype.kind_of? self Skype.property2symbol[skypeProperty] = methodName.to_sym Skype.property2callback[skypeProperty] = callBack if callBack else property2symbol[skypeProperty] = methodName.to_sym property2callback[skypeProperty] = callBack if callBack end end |