Sha256: 3247a9db487b764ed9fdf841ae7db11cbfc8ff43183756189ff13c58d2713124
Contents?: true
Size: 398 Bytes
Versions: 8
Compression:
Stored size: 398 Bytes
Contents
# frozen_string_literal: true module Grumlin module Pop # TODO: share the code? class << self %i[first last all mixed].each do |step| define_method step do name = "@#{step}" return instance_variable_get(name) if instance_variable_defined?(name) instance_variable_set(name, TypedValue.new("Pop", step)) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems