comment_strip.r
Comment Strip, for Ruby
Introduction
T.B.C.
Table of Contents
- Introduction
- Installation
- Components
- Project Information
Installation
Install directly:
$ gem install comment_strip-ruby
or add it to your Gemfile
:
gem 'comment_strip-ruby'
Components
Current version supports following language families:
-
'C'
- C-family languages, recognising//
line and/* … */
block comments; -
'Hash_Line'
- Generic support for#
line comments, as found in shell scripts and languages such as Perl, Python, and Ruby. NOTE: Does not yet provide any language-specific smarts such as she-bang comments and directive comments;
Examples
It is as simple as the following:
require 'comment_strip'
stripped = CommentStrip.strip($stdin.read, :C)
puts "Stripped form of input:\n#{stripped}"
Several examples are provided under the examples/ directory.
Project Information
RubyGems page
Where to get help
Contribution guidelines
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/comment_strip.r.
Dependencies
Test-only dependencies
<none>
Related projects
T.B.C.
License
comment_strip.r is released under the 3-clause BSD license. See LICENSE for details.