lib/sinclair/method_definition/string_definition.rb in sinclair-1.10.0 vs lib/sinclair/method_definition/string_definition.rb in sinclair-1.11.0
- old
+ new
@@ -5,9 +5,11 @@
# @api private
# @author darthjee
#
# Define an instance method from string
class StringDefinition < MethodDefinition
+ build_with MethodBuilder::StringMethodBuilder
+
# @param name [String,Symbol] name of the method
# @param code [String] code to be evaluated as method
# @param options [Hash] Options of construction
# @option options cached [Boolean] Flag telling to create
# a method with cache