spec/support/factory_methods.rb in mini_kraken-0.1.04 vs spec/support/factory_methods.rb in mini_kraken-0.1.05

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require_relative '../../lib/mini_kraken/core/any_value' require_relative '../../lib/mini_kraken/core/cons_cell' require_relative '../../lib/mini_kraken/core/k_symbol' require_relative '../../lib/mini_kraken/core/variable' require_relative '../../lib/mini_kraken/core/variable_ref' @@ -40,17 +42,17 @@ end # Factory method for constructing a Variable # @param var_name [String] # @return [Core::Variable] - def var_ref(var_name) + def variable(var_name) Core::Variable.new(var_name) end # Factory method for constructing a VariableRef # @param var_name [String] # @return [Core::VariableRef] def var_ref(var_name) Core::VariableRef.new(var_name) end end # end -end # module \ No newline at end of file +end # module