Class: RSpec::Parameterized::RefArg
- Defined in:
- lib/rspec/parameterized/ref_arg.rb
Instance Method Summary collapse
- #apply(obj) ⇒ Object
-
#initialize(symbol) ⇒ RefArg
constructor
A new instance of RefArg.
- #inspect ⇒ Object
Constructor Details
#initialize(symbol) ⇒ RefArg
Returns a new instance of RefArg.
5 6 7 |
# File 'lib/rspec/parameterized/ref_arg.rb', line 5 def initialize(symbol) @symbol = symbol end |
Instance Method Details
#apply(obj) ⇒ Object
9 10 11 |
# File 'lib/rspec/parameterized/ref_arg.rb', line 9 def apply(obj) obj.send(@symbol) end |
#inspect ⇒ Object
13 14 15 |
# File 'lib/rspec/parameterized/ref_arg.rb', line 13 def inspect "#{@symbol}" end |