Class: Array
Overview
Most - Modular Open Software Tester.
Copyright (C) 2009 Dmitrii Toksaitov
This file is part of Most.
Most is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Most is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Most. If not, see <http://www.gnu.org/licenses/>.
Instance Method Summary collapse
Instance Method Details
#/(value) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/most/helpers/array.rb', line 20 def /(value) result = nil if value.is_a?(Symbol) result = self + [value] elsif value.is_a?(Array) result = self + value end result end |