Sha256: c77c9dceadcec98e9375889728589017fc1e6323735cc6a85412c620d34c6752
Contents?: true
Size: 1008 Bytes
Versions: 2
Compression:
Stored size: 1008 Bytes
Contents
# encoding: utf-8 module Axiom class Function class Numeric # A class representing an absolute function class Absolute < Numeric include Unary # Return the absolute operation # # @example # Absolute.operation # => :abs # # @return [Symbol] # # @api public def self.operation :abs end module Methods extend Aliasable inheritable_alias(abs: :absolute) # Return an absolute function # # @example # absolute = attribute.absolute # # @return [Absolute] # # @api public def absolute Absolute.new(self) end end # module Methods Attribute::Numeric.class_eval { include Methods } Numeric.class_eval { include Methods } end # class Absolute end # class Numeric end # class Function end # module Axiom
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | lib/axiom/function/numeric/absolute.rb |
axiom-0.1.1 | lib/axiom/function/numeric/absolute.rb |