Module Origin::Extensions::Symbol
In: lib/origin/extensions/symbol.rb

This module contains additional symbol behaviour.

Methods

Classes and Modules

Module Origin::Extensions::Symbol::ClassMethods

Public Instance methods

Get the symbol as a specification.

@example Get the symbol as a criteria.

  :field.__expr_part__(value)

@param [ Object ] value The value of the criteria. @param [ true, false ] negating If the selection should be negated.

@return [ Hash ] The selection.

@since 1.0.0

Get the symbol as a sort direction.

@example Get the symbol as a sort direction.

  "1".to_direction

@return [ Integer ] The direction.

@since 1.0.0

[Validate]