Class: Riddl::Wrapper::Description::RequestStarOut

Inherits:
AccessBase
  • Object
show all
Defined in:
lib/ruby/riddl/wrapper/description/access.rb

Overview

}}}

Instance Attribute Summary collapse

Attributes inherited from AccessBase

#custom, #interface

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AccessBase

#used=, #used?

Constructor Details

#initialize(des, mout, interface, custom = []) ⇒ RequestStarOut

{{{



72
73
74
75
76
77
78
79
80
# File 'lib/ruby/riddl/wrapper/description/access.rb', line 72

def initialize(des,mout,interface,custom=[])
  @custom = custom
  @interface = interface
  if des.nil?
    @out = mout
  else
    @out = mout.nil? ? nil : Riddl::Wrapper::Description::Message.new(des,mout)
  end
end

Instance Attribute Details

#outObject (readonly)

Returns the value of attribute out.



84
85
86
# File 'lib/ruby/riddl/wrapper/description/access.rb', line 84

def out
  @out
end

Class Method Details

.new_from_message(mout, custom) ⇒ Object



81
82
83
# File 'lib/ruby/riddl/wrapper/description/access.rb', line 81

def self.new_from_message(mout,custom)
  RequestStarOut.new(nil,mout,nil,custom)
end

Instance Method Details

#hashObject



85
86
87
# File 'lib/ruby/riddl/wrapper/description/access.rb', line 85

def hash
  @out.nil? ? 0 : @out.hash
end

#visualizeObject



88
# File 'lib/ruby/riddl/wrapper/description/access.rb', line 88

def visualize; "out #{@out.nil? ? "NIL" : @out.name.inspect}"; end