class LearningOutcome
Public Instance Methods
ulo_codes_list()
click to toggle source
# File lib/buweb/learning_outcome.rb, line 32 def ulo_codes_list self.ulo_codes.join(', ') unless self.ulo_codes.nil? end
ulo_codes_list=(arg)
click to toggle source
# File lib/buweb/learning_outcome.rb, line 28 def ulo_codes_list=(arg) self.ulo_codes = arg.split(',').map { |v| v.strip } end
ulos()
click to toggle source
# File lib/buweb/learning_outcome.rb, line 24 def ulos # TODO look up ulos with the ulo_codes end
Private Instance Methods
increment_position()
click to toggle source
# File lib/buweb/learning_outcome.rb, line 38 def increment_position self.position = self._parent.learning_outcomes.where(:position.ne => nil).in_order.last.try(:position).to_i + 1 end