Sha256: abb0dd5b0c7a34a434cb9b8fee156d9967452beca8f87dadf699d7f32fe1ded7

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

require 'rubygems'
require 'rspec'
require 'byebug'
require './lib/no_integrity'

class MrArbitrary
  include NoIntegrity

  attr_accessor :some_random_hash

  no_attr_store :some_random_hash

  no_attribute :misc
  no_attribute :hair, type: 'String'
  no_attribute :age, type: 'Integer'
  no_attribute :height, type: 'String'
  no_attribute :eyes, type: 'String'
  no_attribute :friendly, type: 'Boolean', default: true
  no_attribute :cheese, default: "Cheddar"
  no_attribute :ham
  no_attribute :balogne

  def initialize(attributes = nil)
    @some_random_hash = attributes
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
no_integrity-0.6.0 spec/spec_helper.rb
no_integrity-0.5.2 spec/spec_helper.rb