class Mv::Core::Constraint::Base
Attributes
description[R]
validations[R]
Public Class Methods
new(description)
click to toggle source
# File lib/mv/core/constraint/base.rb, line 13 def initialize description @description = description @validations = [] end
Public Instance Methods
<=>(other_constraint)
click to toggle source
# File lib/mv/core/constraint/base.rb, line 18 def <=> other_constraint [self.class.name, description, validations.sort] <=> [other_constraint.class.name, other_constraint.description, other_constraint.validations.sort] end
create()
click to toggle source
# File lib/mv/core/constraint/base.rb, line 22 def create end
delete()
click to toggle source
# File lib/mv/core/constraint/base.rb, line 25 def delete end
update(new_constraint)
click to toggle source
# File lib/mv/core/constraint/base.rb, line 28 def update new_constraint end