changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/expectations/extensions/string_and_symbol.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1module Spec
2 module Expectations
3 module StringHelpers
4 def starts_with?(prefix)
5 to_s[0..(prefix.to_s.length - 1)] == prefix.to_s
6 end
7 end
8 end
9end
10
11class String
12 include Spec::Expectations::StringHelpers
13end
14
15class Symbol
16 include Spec::Expectations::StringHelpers
17end