class Mandrake::DSL::Stringify::Relation
@!visibility private
Public Class Methods
chain(name, &block)
click to toggle source
Defines a method for the relation @param [String, Symbol] name @yield block on which to base the method @!visibility private
# File lib/mandrake/dsl/stringify.rb, line 28 def self.chain(name, &block) define_method(name){|*args| instance_exec(*args, &block); self; } end
new(klass)
click to toggle source
@param [Class] klass @!visibility private
# File lib/mandrake/dsl/stringify.rb, line 34 def initialize(klass) @class = klass reset_string end
Public Instance Methods
to_s()
click to toggle source
Returns a string built by this class @!visibility private
# File lib/mandrake/dsl/stringify.rb, line 41 def to_s @string end