lib/semantic_model/base.rb
# inserts given object or parse result into the SemanticModel
inserts given object or parse result into the SemanticModel
inserts given object or parse result into the SemanticModel
def push(obj)
    if obj.kind_of?(Array)
      obj.each do |array_element|
        push(array_element)
      end
    elsif obj.kind_of?(SemanticModel::Elements::Base) or obj.kind_of?(SemanticModel::Stubs::Base)
      @symbol_table.push obj
    else
      raise SemanticModel::InvalidObject.new "I don't know how to deal with obj: #{obj.to_s}."
    end      
  end
def push ( obj ) if obj . kind_of? ( Array ) obj . each do | array_element | push ( array_element ) end elsif obj . kind_of? ( SemanticModel :: Elements :: Base ) or obj . kind_of? ( SemanticModel :: Stubs :: Base ) @symbol_table . push obj else raise SemanticModel :: InvalidObject . new "I don't know how to deal with obj: #{obj.to_s}." end end
inserts given object or parse result into the SemanticModel
inserts given object or parse result into the SemanticModel
obj
<not_specific>