Module: RSpec::Resources::DSL::Actions

Extended by:
ActiveSupport::Concern
Defined in:
lib/rspec/resources/dsl/actions.rb,
lib/rspec/resources/dsl/actions/include_if_needed.rb

Defined Under Namespace

Modules: ClassMethods Classes: IncludeIfNeeded

Instance Method Summary collapse

Instance Method Details

#instantiate_path(path, obj) ⇒ Object



119
120
121
# File 'lib/rspec/resources/dsl/actions.rb', line 119

def instantiate_path(path, obj)
  path.gsub(/:\w+/) { |s| obj[s[1..-1]] }
end