Sha256: dec7f772243182ef52445e147db2280a980a6eabbdb2853205bf49a9f3cdbf80

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

FancySpec describe: DynamicSlotObject with: {
  it: "has the correct slots defined" when: {
    dso = DynamicSlotObject new
    dso tap: @{
      name: "Chris"
      age: 25
      country: "Germany"
    }

    dso object tap: @{
      slots is: ['name, 'age, 'country]
      class is: Object

      # getters
      name is: "Chris"
      age is: 25
      country is: "Germany"

      # setters
      name: "Jack"
      name is: "Jack"
      age: 26
      age is: 26
      country: "USA"
      country is: "USA"
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fancy-0.10.0 tests/dynamic_slot_object.fy
fancy-0.9.0 tests/dynamic_slot_object.fy
fancy-0.8.0 tests/dynamic_slot_object.fy
fancy-0.7.0 tests/dynamic_slot_object.fy