Method: Object#__in_workaround
- Defined in:
- lib/all/sugarcube-legacy/activesupport.rb
#__in_workaround(args) ⇒ Object Also known as: in?
okay, this is strange, but ‘rake spec` fails if I define the method as `in?` but passes if I alias it, as I do below. weird, but I don’t want to fight it.
19 20 21 22 23 |
# File 'lib/all/sugarcube-legacy/activesupport.rb', line 19 def __in_workaround(args) args.include?(self) rescue NoMethodError raise ArgumentError.new("The parameter passed to #in? must respond to #include?") end |