Sha256: 7c578e5e2fe1ed91ba47c8ab39dd8ba5b684e1cc324ad4db4e3924c0e82964ef
Contents?: true
Size: 407 Bytes
Versions: 58
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true # Sequel uses send by default module Sequel::Plugins::GetColumnValue module InstanceMethods # Returns a raw column value # # @example # o = Order::Model.first # o.amount # => #<Money fractional:5000.0 currency:USD> # o.get_column_value(:amount) # => 0.5e2 # @return value def get_column_value(value) self[value] end end end
Version data entries
58 entries across 58 versions & 1 rubygems