class Riddl::Wrapper::IOMessages
Attributes
in[R]
interface[R]
out[R]
route[R]
Public Class Methods
new(min,mout,route=nil,interface=nil)
click to toggle source
{{{
# File lib/ruby/riddl/wrapper.rb, line 301 def initialize(min,mout,route=nil,interface=nil) @in = min @out = mout @route = route @interface = interface end
Public Instance Methods
route?()
click to toggle source
# File lib/ruby/riddl/wrapper.rb, line 307 def route? !(route.nil? || route.empty?) end
route_to_a()
click to toggle source
# File lib/ruby/riddl/wrapper.rb, line 310 def route_to_a if route? @route.map do |m| if m.class == Riddl::Wrapper::Description::RequestInOut Riddl::Wrapper::IOMessages.new(m.in, m.out,nil,m.interface) elsif m.class == Riddl::Wrapper::Description::RequestTransformation Riddl::Wrapper::IOMessages.new(Riddl::Wrapper::Description::Star.new, Riddl::Wrapper::Description::Star.new,nil,m.interface) elsif m.class == Riddl::Wrapper::Description::RequestStarOut Riddl::Wrapper::IOMessages.new(Riddl::Wrapper::Description::Star.new, m.out,nil,m.interface) elsif m.class == Riddl::Wrapper::Description::RequestPass Riddl::Wrapper::IOMessages.new(Riddl::Wrapper::Description::Star.new, Riddl::Wrapper::Description::Star.new,nil,m.interface) end end else [self] end end