module Engrel::Helpers

Public Instance Methods

claim(*args, &block)
Alias for: sentence
fact(*args, &block)
Alias for: sentence
sentence(*args, &block) click to toggle source

Creates a new relation from scratch–that is, without an implicit subject. Takes arguments in the order they would be written in an anglish sentence.

@param [Object] an object, usually an actor. @param [Symbol] a verb from the vast pre-approved list that decsribes this relation. @param [Object] the direct object in this @returns [Sentence] The new Sentence object created to represent this relation.

# File lib/engrel.rb, line 20
def sentence(*args, &block)
  Engrel::Sentence.claim(*args, &block)
end
Also aliased as: fact, claim