class Mv::Core::Constraint::Description
Attributes
name[R]
options[R]
type[R]
Public Class Methods
new(name, type, options = {})
click to toggle source
# File lib/mv/core/constraint/description.rb, line 9 def initialize name, type, options = {} @name = name.to_sym @type = type.to_sym @options = options.inject({}) do |res, (name, value)| res[name.to_sym] = value.to_s res end end
Public Instance Methods
<=>(other_info)
click to toggle source
# File lib/mv/core/constraint/description.rb, line 18 def <=> other_info [name, type, options] <=> [other_info.name, other_info.type, other_info.options] end