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.3.4 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.4.0.pre3 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.4.0.pre2 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.4.0.pre1 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.3.3 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.3.2 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.3.1 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.3.0 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.5 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.4 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.3 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.2 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.1 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.2.0 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.1.3 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.1.2 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.1.1 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.1.0 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.0.0 lib/active_mocker/mock_template/_defined_methods.erb
active_mocker-2.0.0.rc1 lib/active_mocker/mock_template/_defined_methods.erb