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



139
140
141
142
143
144
145
146
# File 'lib/rio/entrysel.rb', line 139

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



147
148
149
# File 'lib/rio/entrysel.rb', line 147

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