Class: Yast::External

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#magicObject (readonly)

String identifier of payload



6
7
8
# File 'src/ruby/yast/external.rb', line 6

def magic
  @magic
end

Instance Method Details

#to_sObject



14
15
16
# File 'src/ruby/yast/external.rb', line 14

def to_s
  "External payload #{magic}"
end