Class: Ruby::Rego::AST::Rule::Definition

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby/rego/ast/rule.rb

Overview

Bundles rule components for storage.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



13
14
15
# File 'lib/ruby/rego/ast/rule.rb', line 13

def body
  @body
end

#default_valueObject

Returns the value of attribute default_value

Returns:

  • (Object)

    the current value of default_value



13
14
15
# File 'lib/ruby/rego/ast/rule.rb', line 13

def default_value
  @default_value
end

#else_clauseObject

Returns the value of attribute else_clause

Returns:

  • (Object)

    the current value of else_clause



13
14
15
# File 'lib/ruby/rego/ast/rule.rb', line 13

def else_clause
  @else_clause
end

#headObject

Returns the value of attribute head

Returns:

  • (Object)

    the current value of head



13
14
15
# File 'lib/ruby/rego/ast/rule.rb', line 13

def head
  @head
end