Class: LogicaCompiler::Config::Query

Inherits:
Struct
  • Object
show all
Defined in:
lib/logica_compiler/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(program:, predicate:) ⇒ Query

Returns a new instance of Query.



11
12
13
# File 'lib/logica_compiler/config.rb', line 11

def initialize(program:, predicate:)
  super(program: program.to_s, predicate: predicate.to_s)
end

Instance Attribute Details

#predicateObject

Returns the value of attribute predicate

Returns:

  • (Object)

    the current value of predicate



10
11
12
# File 'lib/logica_compiler/config.rb', line 10

def predicate
  @predicate
end

#programObject

Returns the value of attribute program

Returns:

  • (Object)

    the current value of program



10
11
12
# File 'lib/logica_compiler/config.rb', line 10

def program
  @program
end