Sha256: 03488ebf38be6d7c44cf4028abe18f9680e635c22cb8a011c0b7ed76ad55627f

Contents?: true

Size: 209 Bytes

Versions: 20

Compression:

Stored size: 209 Bytes

Contents

# _attributes.erb
<% attributes.each do |meth| -%>
  def <%= meth.name %>
    read_attribute(:<%= meth.name %>)
  end


  def <%= meth.name %>=(val)
    write_attribute(:<%= meth.name %>, val)
  end
<% end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
active_mocker-2.3.4 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.4.0.pre1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.3.3 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.3.2 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.3.1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.3.0 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.5 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.4 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.3 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.2 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.2.0 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.1.3 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.1.2 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.1.1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.1.0 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.0.0 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.0.0.rc1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.0.0.pre1 lib/active_mocker/mock_template/_attributes.erb
active_mocker-2.0.0.beta1 lib/active_mocker/mock_template/_attributes.erb