lib/object.fy in fancy-0.9.0 vs lib/object.fy in fancy-0.10.0
- old
+ new
@@ -392,14 +392,17 @@
}
def backtick: str {
"""
This is the default implementation for backtick: which gets called when using the backtick syntax.
+
For example:
`cat README`
+
Gets translated to the following message send:
self backtick: \"cat README\"
+
Which allows for custom implementations of the backtick: method, if needed.
This default implementation works the same way as in Ruby, Perl or Bash.
It returns the output of running the given string on the command line as a @String@.
"""
@@ -681,10 +684,10 @@
def slots {
"""
@return @Array@ of slot names that @self has.
"""
- instance_variables map: @{ rest to_sym }
+ instance_variables map: @{ to_s rest to_sym }
}
def sleep: seconds {
"""
@seconds Amount of seconds to sleep.
\ No newline at end of file