Module: Arrayize
- Defined in:
- lib/rspec_check_auth/extend_object.rb
Instance Method Summary collapse
-
#arrayize ⇒ Object
Returns an object containing self, unless self is an Array already.
Instance Method Details
#arrayize ⇒ Object
Returns an object containing self, unless self is an Array already.
5 6 7 8 |
# File 'lib/rspec_check_auth/extend_object.rb', line 5 def arrayize return [self] unless self.is_a?(Array) self end |