lib/tracksperanto/casts.rb in tracksperanto-2.8.6 vs lib/tracksperanto/casts.rb in tracksperanto-2.9.0

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- # Helps to define things that will forcibly become floats, integers or strings module Tracksperanto::Casts def self.included(into) into.extend(self) super @@ -26,6 +27,6 @@ attributes.each do | an_attr | define_method(an_attr) { instance_variable_get("@#{an_attr}").to_s } define_method("#{an_attr}=") { |to| instance_variable_set("@#{an_attr}", to.to_s) } end end -end \ No newline at end of file +end