140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
# File 'lib/focuslight/graph.rb', line 140
def update(args={})
meta = @parsed_meta.dup
args.each do |k, v|
case k.to_sym
when :number then @number = v
when :description then @description = v
when :sort then @sort = v
when :mode then @mode = v
when :color then @color = v
when :ulimit then @ulimit = v
when :llimit then @llimit = v
when :type then @type = v
else
meta[k.to_sym] = v
end
end
@parsed_meta = self.class.meta_clean(@parsed_meta.merge(meta))
@meta = @parsed_meta.to_json
end
|