Method: Arrogance::BlogObject#contains_positions

Defined in:
lib/arrogance/objects.rb

#contains_positions(str) ⇒ Object

– internal methods. I would usually make these private, but I was once the recipient of a rant – on how private methods are Ruby’s version of Satan. I shall refrain from marking them private.



86
87
88
89
# File 'lib/arrogance/objects.rb', line 86

def contains_positions(str)
  str.split('_and_').each {|s| return false unless @positions.keys.collect {|k| k.to_s}.include?(s)}
  return true
end