Sha256: fea33574d75784cc03d9819e73190b88c8cb9d5f056bfd8403140480d92b036d

Contents?: true

Size: 360 Bytes

Versions: 23

Compression:

Stored size: 360 Bytes

Contents

# frozen_string_literal: true

new({ particle: :smooth, category: :effect, type: :int })

new({ particle: :blur, category: :effect, type: :int }) do |params|
  affect_to = if affect.nil?
                affect
              else
                [:self]
              end
  val = { value: params, affect: affect_to } unless params.instance_of?(Hash)
  val
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 lib/atome/genesis/particles/effect.rb
atome-0.5.7.5.9 lib/atome/genesis/particles/effect.rb
atome-0.5.7.5.4 lib/atome/genesis/particles/effect.rb
atome-0.5.7.5.3 lib/atome/genesis/particles/effect.rb
atome-0.5.7.5.1 lib/atome/genesis/particles/effect.rb
atome-0.5.7.4.8 lib/atome/genesis/particles/effect.rb
atome-0.5.7.4.7 lib/atome/genesis/particles/effect.rb
atome-0.5.7.4.6 lib/atome/genesis/particles/effect.rb
atome-0.5.7.4.3 lib/atome/genesis/particles/effect.rb
atome-0.5.7.4.2 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.9 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.6 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.5 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.3 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.2 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.1 lib/atome/genesis/particles/effect.rb
atome-0.5.7.3.0 lib/atome/genesis/particles/effect.rb
atome-0.5.7.1.8 lib/atome/genesis/particles/effect.rb
atome-0.5.7.1.7 lib/atome/genesis/particles/effect.rb
atome-0.5.7.1.0 lib/atome/genesis/particles/effect.rb