Class: RIO::Match::Entry::Sels

Inherits:
Array show all
Defined in:
lib/rio/entrysel.rb

Instance Method Summary collapse

Methods included from ToRio::Array

#/, #to_rio, #to_rios

Instance Method Details

#<<(entry_list) ⇒ Object



150
151
152
153
154
155
156
157
# File 'lib/rio/entrysel.rb', line 150

def <<(entry_list)
  same_sym = self.grep(entry_list)
  if same_sym.empty?
    super
  else
    same_sym[0].list = entry_list.list
  end
end

#callstr(func, *args) ⇒ Object



158
159
160
# File 'lib/rio/entrysel.rb', line 158

def callstr(func,*args)
  self.class.to_s+'['+self.to_s+']'+'.'+func.to_s+'('+args.join(',')+')'
end