Sha256: 4906bfab8174e5fb9e03f12c13404147f3a1a1c1b3b3a449dcbf73af6bd718d0
Contents?: true
Size: 366 Bytes
Versions: 18
Compression:
Stored size: 366 Bytes
Contents
module MotionKit class ConstraintPlaceholder def initialize(type, name, value=nil) @type = type @name = name @value = value end def resolve(layout) case @type when :first layout.get(@name) when :last layout.last(@name) when :nth layout.nth(@name, @value) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems