Module: Transpec::StaticContextInspector::ArrayExtension

Defined in:
lib/transpec/static_context_inspector.rb

Instance Method Summary collapse

Instance Method Details

#end_with?(*args) ⇒ Boolean

Returns:

  • (Boolean)


151
152
153
154
# File 'lib/transpec/static_context_inspector.rb', line 151

def end_with?(*args)
  tail = args.flatten
  self[-(tail.size)..-1] == tail
end