class Mandrake::DSL::Stringify
A class for building an expression by using the method_missing method @example
Oh = Class.new(Mandrake::DSL::Stringify) Oh.stringify.Mikey.hello('boy').to_s #=> "oh.Mikey.hello(\"boy\")" Oh.stringify.James.goodbye('man').to_s #=> "oh.James.goodbye(\"man\")" Oh.stringify.Mikey.hello('boy').and(Oh.stringify.James.goodbye('man')).to_s #=> "oh.Mikey.hello(\"boy\") && oh.James.goodbye(\"man\")"
@!visibility private
Public Class Methods
stringify()
click to toggle source
@!visibility private
# File lib/mandrake/dsl/stringify.rb, line 18 def self.stringify Stringify::Relation.new(self) end
Public Instance Methods
stringify()
click to toggle source
@!visibility private
# File lib/mandrake/dsl/stringify.rb, line 13 def stringify self.class.stringify end