lib/rbx/object.fy in fancy-0.7.0 vs lib/rbx/object.fy in fancy-0.8.0

- old
+ new

@@ -1,7 +1,7 @@ class Object { - ruby_aliases: [ '==, '===, 'class, 'inspect, 'object_id, 'instance_variables ] + ruby_aliases: [ '==, '===, 'class, 'inspect, 'object_id, 'instance_variables, 'methods, 'instance_variable_get, 'instance_variable_set ] def initialize { initialize() } @@ -12,11 +12,16 @@ Relative paths are allowed (and by default expected). """ Fancy CodeLoader require: file_path } - def dclone { - "Returns a deep clone of self using Ruby's Marshal class." + def dup { + """ + @return Copy (clone) of self. + + Returns a deep clone of self using Ruby's Marshal class. + """ + Marshal load(Marshal dump(self)) } def to_s { """