Class: RSpec::Parameterized::Core::RefArg
- Defined in:
- lib/rspec/parameterized/core/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.
6 7 8 |
# File 'lib/rspec/parameterized/core/ref_arg.rb', line 6 def initialize(symbol) @symbol = symbol end |
Instance Method Details
#apply(obj) ⇒ Object
10 11 12 |
# File 'lib/rspec/parameterized/core/ref_arg.rb', line 10 def apply(obj) obj.send(@symbol) end |
#inspect ⇒ Object
14 15 16 |
# File 'lib/rspec/parameterized/core/ref_arg.rb', line 14 def inspect "#{@symbol}" end |