Module: ArgThat
- Defined in:
- lib/arg_that.rb,
lib/arg_that/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(includer) ⇒ Object
9 10 11 12 13 |
# File 'lib/arg_that.rb', line 9 def self.included(includer) if defined?(RSpec) && includer.ancestors.include?(RSpec::Core::ExampleGroup) require "arg_that/eqish" end end |
Instance Method Details
#arg_that(&blk) ⇒ Object
5 6 7 |
# File 'lib/arg_that.rb', line 5 def arg_that(&blk) ThatArg.new(&blk) end |