Class: LogicaCompiler::Config::Query
- Inherits:
-
Struct
- Object
- Struct
- LogicaCompiler::Config::Query
- Defined in:
- lib/logica_compiler/config.rb
Instance Attribute Summary collapse
-
#predicate ⇒ Object
Returns the value of attribute predicate.
-
#program ⇒ Object
Returns the value of attribute program.
Instance Method Summary collapse
-
#initialize(program:, predicate:) ⇒ Query
constructor
A new instance of Query.
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
#predicate ⇒ Object
Returns the value of attribute predicate
10 11 12 |
# File 'lib/logica_compiler/config.rb', line 10 def predicate @predicate end |
#program ⇒ Object
Returns the value of attribute program
10 11 12 |
# File 'lib/logica_compiler/config.rb', line 10 def program @program end |