class Riddl::Wrapper::Description::RequestInOut
Attributes
in[R]
out[R]
Public Class Methods
new(des,min,mout,interface,custom=[])
click to toggle source
# File lib/ruby/riddl/wrapper/description/access.rb, line 18 def initialize(des,min,mout,interface,custom=[]) @custom = custom @interface = interface if des.nil? @in = min @out = mout else @in = Riddl::Wrapper::Description::Message.new(des,min) @out = mout.nil? ? nil : Riddl::Wrapper::Description::Message.new(des,mout) end end
new_from_message(min,mout,custom)
click to toggle source
# File lib/ruby/riddl/wrapper/description/access.rb, line 29 def self.new_from_message(min,mout,custom) RequestInOut.new(nil,min,mout,nil,custom) end
Public Instance Methods
hash()
click to toggle source
# File lib/ruby/riddl/wrapper/description/access.rb, line 32 def hash @in.hash + (@out.nil? ? 0 : @out.hash) end
visualize()
click to toggle source
# File lib/ruby/riddl/wrapper/description/access.rb, line 36 def visualize; "in #{@in.name.inspect} out #{@out.nil? ? "NIL" : @out.name.inspect}"; end