Class: Yast::External
- Inherits:
-
Object
- Object
- Yast::External
- Defined in:
- src/ruby/yast/external.rb
Overview
represent type YCPExternal for binary payload without operations. Used for example to pass object from perl.
Instance Attribute Summary collapse
-
#magic ⇒ Object
readonly
String identifier of payload.
Instance Method Summary collapse
-
#initialize(magic) ⇒ External
constructor
creates external with given payload, binary data must be assigned from C.
- #to_s ⇒ Object
Constructor Details
#initialize(magic) ⇒ External
creates external with given payload, binary data must be assigned from C. Constructed only by bindings when given from component system.
10 11 12 |
# File 'src/ruby/yast/external.rb', line 10 def initialize(magic) @magic = magic end |
Instance Attribute Details
#magic ⇒ Object (readonly)
String identifier of payload
6 7 8 |
# File 'src/ruby/yast/external.rb', line 6 def magic @magic end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'src/ruby/yast/external.rb', line 14 def to_s "External payload #{magic}" end |