class Rubylog::Rule

This is an internally used class that represents a rule of a predicate.

Attributes

body[R]
head[R]

Public Class Methods

new(head, body) click to toggle source
# File lib/rubylog/rule.rb, line 8
def initialize head, body
  @head = head
  @body = body
end

Public Instance Methods

inspect() click to toggle source
# File lib/rubylog/rule.rb, line 13
def inspect
  "#{head.inspect}.if(#{body.inspect})"
end
rubylog_clone(&block) click to toggle source
# File lib/rubylog/rule.rb, line 19
def rubylog_clone &block
  block.call Rule.new @head.rubylog_clone(&block), @body.rubylog_clone(&block)
end
rubylog_deep_dereference() click to toggle source
# File lib/rubylog/rule.rb, line 22
def rubylog_deep_dereference
  # this is not necessary
  #Rule.new @head.rubylog_deep_dereference, @body.rubylog_deep_dereference
  raise "Not implemented."
end