lib/finite_machine/env.rb in finite_machine-0.11.3 vs lib/finite_machine/env.rb in finite_machine-0.12.0
- old
+ new
@@ -1,7 +1,9 @@
-# encoding: utf-8
+# frozen_string_literal: true
+require_relative 'threadable'
+
module FiniteMachine
# Holds references to targets and aliases
#
# @api public
class Env
@@ -9,10 +11,10 @@
attr_threadsafe :target
attr_threadsafe :aliases
- def initialize(target, aliases)
+ def initialize(target, aliases = [])
@target = target
@aliases = aliases
end
end # Env
end # FiniteMachine