module Engrel::Helpers
Public Instance Methods
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