Module: Engrel::Helpers
- Defined in:
- lib/engrel.rb
Defined Under Namespace
Modules: AciveRecordInstanceMethods
Instance Method Summary collapse
-
#sentence(*args, &block) ⇒ Object
(also: #fact, #claim)
Creates a new relation from scratch–that is, without an implicit subject.
Instance Method Details
#sentence(*args, &block) ⇒ Object Also known as: fact, claim
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.
20 21 22 |
# File 'lib/engrel.rb', line 20 def sentence(*args, &block) Engrel::Sentence.claim(*args, &block) end |