Sha256: 1b01d99ca09b18c45030931dd26fbb73a4595be0d82fcef434d51a6e8aa96022
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
# frozen_string_literal: true new({ particle: :red }) do # we return self to allow syntax of the type : a.color(:black).red(1).green(0.3) self end new({ particle: :green }) do # we return self to allow syntax of the type : a.color(:black).red(1).green(0.3) self end new({ particle: :blue }) do # we return self to allow syntax of the type : a.color(:black).red(1).green(0.3) self end new({ particle: :alpha }) do # we return self to allow syntax of the type : a.color(:black).red(1).green(0.3) self end new({ particle: :diffusion }) do # we return self to allow syntax of the type : a.color(:black).red(1).green(0.3) self end new({ particle: :visual }) new({ particle: :overflow }) new({ particle: :edit }) new({ particle: :style }) new({ pre: :style }) do |styles_send, _user_proc| styles_send.each do |particle_send, value| send(particle_send, value) end end new({ particle: :hide }) new({ particle: :remove }) do |particle_to_remove| case particle_to_remove when :color send(particle_to_remove, :black) when :shadow # TODO : code to write puts 'code to write' else particle_to_remove_decision(particle_to_remove) end end new({ particle: :classes }) do |value| Universe.classes[value] ||= [] Universe.classes[value] |= [id] end new({ particle: :remove_classes }) do |value| # Universe.classes.delete(value) Universe.classes[value].delete(id) end new ({particle: :opacity}) # vector shape new({particle: :definition}) new({ browser: :definition, type: :string })
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.4.1.2 | lib/atome/genesis/generators/material.rb |
atome-0.5.4.1.1 | lib/atome/genesis/generators/material.rb |