Class: Should
- Inherits:
-
Object
- Object
- Should
- Defined in:
- lib/Bacon_FS_Matchers.rb
Defined Under Namespace
Classes: Exposed
Instance Method Summary collapse
Instance Method Details
#be(*raw_args, &blok) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/Bacon_FS_Matchers.rb', line 13 def be *raw_args, &blok args = raw_args.flatten if !block_given? && args.size == 2 && args.first.is_a?(Proc) && args.last.is_a?(Proc) desc = args.first.call(Exposed.new self) blok = args.last return be_not_array( desc, &blok ) end be_not_array(*raw_args, &blok) end |
#be_not_array ⇒ Object
12 |
# File 'lib/Bacon_FS_Matchers.rb', line 12 alias_method :be_not_array, :be |