Class: Ronin::SQL::Function

Inherits:
Struct
  • Object
show all
Includes:
Emittable, Operators
Defined in:
lib/ronin/sql/function.rb

Overview

Represents a SQL function call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Emittable

#emitter, #inspect, #to_s, #to_sql

Methods included from Operators

#!, #!=, #%, #&, #*, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #and, #as, #glob, #in, #is, #is_not, #like, #match, #not, #or, #regexp, #|, #~

Constructor Details

#initialize(name, *arguments) ⇒ Function

Creates a new Function object.

Parameters:

  • name (Symbol)

    The name of the function.

  • arguments (Array)

    The arguments of the function.



47
48
49
# File 'lib/ronin/sql/function.rb', line 47

def initialize(name,*arguments)
  super(name,arguments)
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



33
34
35
# File 'lib/ronin/sql/function.rb', line 33

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



33
34
35
# File 'lib/ronin/sql/function.rb', line 33

def name
  @name
end