Sha256: 704d0ebb2d2b275975c19d32f704971eacd6edbf0724192789f8b7b8289a65af

Contents?: true

Size: 312 Bytes

Versions: 14

Compression:

Stored size: 312 Bytes

Contents

class Object

  def motion_kit_meta
    @motion_kit_meta ||= {}
  end

  def motion_kit_id=(id)
    motion_kit_meta[:motion_kit_ids] ||= []
    motion_kit_meta[:motion_kit_ids] << id
  end

  def motion_kit_id
    if motion_kit_meta[:motion_kit_ids]
      motion_kit_meta[:motion_kit_ids][-1]
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
motion-kit-1.1.1 lib/motion-kit/object.rb
motion-kit-1.1.0 lib/motion-kit/object.rb
motion-kit-1.0.3 lib/motion-kit/object.rb
motion-kit-1.0.2 lib/motion-kit/object.rb
motion-kit-1.0.1 lib/motion-kit/object.rb
motion-kit-1.0.0 lib/motion-kit/object.rb
motion-kit-0.18.0 lib/motion-kit/object.rb
motion-kit-0.17.0 lib/motion-kit/object.rb
motion-kit-0.16.0 lib/motion-kit/object.rb
motion-kit-0.15.0 lib/motion-kit/object.rb
motion-kit-0.14.2 lib/motion-kit/object.rb
motion-kit-0.14.1 lib/motion-kit/object.rb
motion-kit-0.14.0 lib/motion-kit/object.rb
motion-kit-0.13.0 lib/motion-kit/object.rb