Sha256: 3e270f775fba4ad4be094e79f0692233cea38e33037880c6e3a7154eab889505

Contents?: true

Size: 259 Bytes

Versions: 33

Compression:

Stored size: 259 Bytes

Contents

class Discussion
  attr_accessor :name
  attr_accessor :posts

  def initialize(options={})
    self.name = options[:name] || 'Some Discussion'
    self.posts = options[:posts] || []
  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.2.6 features/support/models/discussion.rb
dryml-2.2.5 features/support/models/discussion.rb
dryml-2.2.4 features/support/models/discussion.rb
dryml-2.2.3 features/support/models/discussion.rb
dryml-2.2.2 features/support/models/discussion.rb
dryml-2.2.1 features/support/models/discussion.rb
dryml-2.2.0 features/support/models/discussion.rb
dryml-2.1.2 features/support/models/discussion.rb
dryml-2.1.1 features/support/models/discussion.rb
dryml-2.1.0 features/support/models/discussion.rb
dryml-2.1.0.pre4 features/support/models/discussion.rb
dryml-2.1.0.pre3 features/support/models/discussion.rb
dryml-2.1.0.pre2 features/support/models/discussion.rb
dryml-2.1.0.pre1 features/support/models/discussion.rb
dryml-2.0.1 features/support/models/discussion.rb
dryml-2.0.0 features/support/models/discussion.rb
dryml-2.0.0.pre10 features/support/models/discussion.rb
dryml-2.0.0.pre9 features/support/models/discussion.rb
dryml-2.0.0.pre8 features/support/models/discussion.rb
dryml-2.0.0.pre7 features/support/models/discussion.rb