Class: Ditz::Label

Inherits:
ModelObject show all
Includes:
Comparable
Defined in:
lib/ditz/plugins/issue-labeling.rb

Instance Method Summary collapse

Methods inherited from ModelObject

#changed!, #changed?, changes_are_logged, create, create_interactively, #deserialized_form_of, #each_modelobject, field, field_names, from, inherited, #initialize, #inspect, #save!, #serialized_form_of, #to_s, #to_yaml, #to_yaml_type, #unchanged!, #validate!, yaml_domain, yaml_other_thing

Constructor Details

This class inherits a constructor from Ditz::ModelObject

Instance Method Details

#<=>(x) ⇒ Object



30
# File 'lib/ditz/plugins/issue-labeling.rb', line 30

def <=> x ; name <=> x.name end

#==(x) ⇒ Object



31
# File 'lib/ditz/plugins/issue-labeling.rb', line 31

def == x ; name == x.name end

#name_prefixObject



28
# File 'lib/ditz/plugins/issue-labeling.rb', line 28

def name_prefix; @name.gsub(/\s+/, "-").downcase end