Sha256: ed2350883105ea9887a0fe7bfbb2329c4c4225d35b4e70f511d6edc2f8697fd1
Contents?: true
Size: 390 Bytes
Versions: 8
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true module Grumlin module Order # TODO: share the code? class << self %i[asc desc].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("Order", step)) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems