Sha256: 9bb106c6b57d40d568eddf9802b463cecd75e2d0e5d014c3afd3d6c08fe39547

Contents?: true

Size: 184 Bytes

Versions: 33

Compression:

Stored size: 184 Bytes

Contents

class Post
  attr_accessor :title

  def initialize(options={})
    self.title = options[:title] || 'A Post'
  end

  # needed for field= to work
  def [](idx)
    send(idx)
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dryml-2.0.0.pre6 features/support/models/post.rb
dryml-2.0.0.pre5 features/support/models/post.rb
dryml-2.0.0.pre4 features/support/models/post.rb
dryml-2.0.0.pre3 features/support/models/post.rb
dryml-2.0.0.pre2 features/support/models/post.rb
dryml-2.0.0.pre1 features/support/models/post.rb
dryml-1.4.0.pre8 features/support/models/post.rb
dryml-1.4.0.pre7 features/support/models/post.rb
dryml-1.4.0.pre6 features/support/models/post.rb
dryml-1.4.0.pre5 features/support/models/post.rb
dryml-1.4.0.pre4 features/support/models/post.rb
dryml-1.4.0.pre3 features/support/models/post.rb
dryml-1.4.0.pre2 features/support/models/post.rb