Sha256: 76a1c8ebaca2b4b558b90b388e35508ae126b2e3904d968d1e21907fcf5f7925

Contents?: true

Size: 325 Bytes

Versions: 21

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
atome-0.5.7.0.3 lib/atome/genesis/particles/effect.rb
atome-0.5.7.0.2 lib/atome/genesis/particles/effect.rb
atome-0.5.6.8.7 lib/atome/genesis/particles/effect.rb
atome-0.5.6.8.6 lib/atome/genesis/particles/effect.rb
atome-0.5.6.8.5 lib/atome/genesis/particles/effect.rb
atome-0.5.6.8.3 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.8 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.7 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.6 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.5 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.4 lib/atome/genesis/particles/effect.rb
atome-0.5.6.7.3 lib/atome/genesis/particles/effect.rb
atome-0.5.6.6.9 lib/atome/genesis/particles/effect.rb
atome-0.5.6.6.7 lib/atome/genesis/particles/effect.rb
atome-0.5.6.6.5 lib/atome/genesis/particles/effect.rb
atome-0.5.6.6.1 lib/atome/genesis/particles/effect.rb
atome-0.5.6.6.0 lib/atome/genesis/particles/effect.rb
atome-0.5.6.5.7 lib/atome/genesis/particles/effect.rb
atome-0.5.6.5.6 lib/atome/genesis/particles/effect.rb
atome-0.5.6.5.4 lib/atome/genesis/particles/effect.rb