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.
641 642 643 644 645 646 647 648 649 650 651 652 |
# File 'lib/intermine/query.rb', line 641 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 |