lib/CLIntegracon/subject.rb in clintegracon-0.6.1 vs lib/CLIntegracon/subject.rb in clintegracon-0.7.0

- old
+ new

@@ -40,15 +40,15 @@ # @!group Initializer # "Designated" initializer # - # @param [String] name - # The name of the binary + # @param [String] name + # The name of the binary # - # @param [String] executable - # The executable subject statement (optional) + # @param [String] executable + # The executable subject statement (optional) # def initialize(name='subject', executable=nil) self.name = name self.executable = executable || name self.environment_vars = {} @@ -63,41 +63,41 @@ # @!group DSL-like Setter # Define a pattern, whose occurrences in the output should be replaced by a # given placeholder. # - # @param [Regexp|String] pattern - # The pattern + # @param [Regexp|String] pattern + # The pattern # - # @param [String] replacement - # The replacement + # @param [String] replacement + # The replacement # def replace_pattern(pattern, replacement) self.replace_patterns[replacement] = pattern end # Define a path, whose occurrences in the output should be replaced by # either its basename or a given placeholder. # - # @param [String] path - # The path + # @param [String] path + # The path # - # @param [String] name - # The name of the path, or the basename of the given path + # @param [String] name + # The name of the path, or the basename of the given path # def replace_path(path, name=nil) name ||= File.basename path self.replace_pattern path, name end # Define a path in the user directory, whose occurrences in the output # should be replaced by either its basename or a given placeholder. # - # @param [String] path - # The path + # @param [String] path + # The path # - # @param [String] name - # The name of the path, or the given path + # @param [String] name + # The name of the path, or the given path # def replace_user_path(path, name=nil) name ||= "$HOME/#{path}" self.replace_path %r[/Users/.*/#{path.to_s}], name end