Sha256: 86cf4c847c88f5e914853c2a99fe30c41ceda8a397c16ecea18c15260dc9f80b
Contents?: true
Size: 567 Bytes
Versions: 22
Compression:
Stored size: 567 Bytes
Contents
<% instance_methods.each do |method| -%> def <%= method.name %><%= "(#{method.arguments.parameters})" unless method.arguments.parameters.to_a.empty? %> call_mock_method(method: __method__, caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>]) end <% end -%> <% class_methods.each do |method| -%> def self.<%= method.name %><%= "(#{method.arguments.parameters})" unless method.arguments.parameters.to_a.empty? %> call_mock_method(method: __method__, caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>]) end <% end -%>
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
active_mocker-2.0.0.pre1 | lib/active_mocker/mock_template/_defined_methods.erb |
active_mocker-2.0.0.beta1 | lib/active_mocker/mock_template/_defined_methods.erb |