lib/ronin/ronin.rb in ronin-1.1.0.rc2 vs lib/ronin/ronin.rb in ronin-1.1.0.rc3
- old
+ new
@@ -34,6 +34,25 @@
# @api private
#
def self.included(base)
base.send :extend, ClassMethods
end
+
+ #
+ # Convenience method for loading Ronin {Script}s.
+ #
+ # @param [String] path
+ # The path to the file.
+ #
+ # @return [Script]
+ # The loaded script.
+ #
+ # @see Script.load_from
+ #
+ # @since 1.1.0
+ #
+ # @api public
+ #
+ def script(path)
+ Script.load_from(path)
+ end
end