Class: Ronin::Code::SQL::Function

Inherits:
Object
  • Object
show all
Includes:
Emittable, Operators
Defined in:
lib/ronin/code/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 being passed to the function.



56
57
58
59
# File 'lib/ronin/code/sql/function.rb', line 56

def initialize(name,*arguments)
  @name      = name
  @arguments = arguments
end

Instance Attribute Details

#argumentsArray (readonly)

The function's arguments.

Returns:

  • (Array)


45
46
47
# File 'lib/ronin/code/sql/function.rb', line 45

def arguments
  @arguments
end

#nameSymbol (readonly)

The function's name.

Returns:

  • (Symbol)


40
41
42
# File 'lib/ronin/code/sql/function.rb', line 40

def name
  @name
end