Method: InterMine::PathQuery::Query#view=

Defined in:
lib/intermine/query.rb

#view=(*view) ⇒ Object Also known as: select

Replace any currently existing views with the given view list. If the view is not already an Array, it will be split by commas and whitespace.



526
527
528
529
530
531
532
533
534
535
536
537
# File 'lib/intermine/query.rb', line 526

def view=(*view)
    @views = []
    view.each do |v|
        if v.is_a?(Array)
            views = v
        else
            views = v.to_s.split(/(?:,\s*|\s+)/)
        end
        add_views(*views)
    end
    return self
end