Sha256: 5ca3d0a20669421f95624155a909b011b3bb59bf60ec1d659d3d98c5a1d11358
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 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(type: "Order", value: step)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grumlin-0.11.0 | lib/grumlin/order.rb |