lib/tracksperanto.rb in tracksperanto-1.0.4 vs lib/tracksperanto.rb in tracksperanto-1.0.6
- old
+ new
@@ -1,7 +1,7 @@
module Tracksperanto
- VERSION = '1.0.4'
+ VERSION = '1.0.6'
module Import; end
module Export; end
module Middleware; end
module Pipeline; end
@@ -68,11 +68,12 @@
end
end
end
module BlockInit
- def initialize
+ def initialize(evt_hash = {})
+ evt_hash.map { |(k, v)| send("#{k}=", v) }
yield(self) if block_given?
end
end
# Internal representation of a tracker
@@ -86,12 +87,12 @@
# Contains the array of all Keyframe objects for this tracker
attr_accessor :keyframes
cast_to_string :name
- def initialize
+ def initialize(h = {})
@name, @keyframes = 'Tracker', []
- super if block_given?
+ super
end
end
# Internal representation of a keyframe
class Keyframe
\ No newline at end of file