class Axiom::Function::String::Length
A class representing a length function
Public Class Methods
call(value)
click to toggle source
Return the string length
@example
length = Length.call(value)
@param [String] value
@return [Integer]
@api public
# File lib/axiom/function/string/length.rb, line 21 def self.call(value) value.length end
type()
click to toggle source
Return the type returned from call
@example
type = Axiom::Function::String.type # => Axiom::Types::Integer
@return [Class<Types::Integer>]
@api public
# File lib/axiom/function/string/length.rb, line 33 def self.type Types::Integer end