https://github.com/niku/ympfilter
It injects evaluated variable to the (hash rocket) comment
https://github.com/niku/ympfilter
Last synced: 30 days ago
JSON representation
It injects evaluated variable to the (hash rocket) comment
- Host: GitHub
- URL: https://github.com/niku/ympfilter
- Owner: niku
- License: mit
- Created: 2013-06-27T04:51:27.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-28T04:17:49.000Z (almost 13 years ago)
- Last Synced: 2025-01-12T16:41:24.925Z (over 1 year ago)
- Language: Ruby
- Size: 109 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ympfilter
Ympfilter means 'Yet another xmpfilter implementation'.
Xmpfilter is in a gem '[rcodetools](http://rubygems.org/gems/rcodetools)'.
It will be able to inject evaluated variable to the (hash rocket) comment.
For Example: foo.rb
```ruby
:a # =>
'foo' # =>
['a','b','c'].each do |e|
e # =>
end
puts 'hello' # =>
```
`$ xmpfilter foo.rb`
```ruby
:a # => :a
'foo' # => "foo"
['a','b','c'].each do |e|
e # => "a", "b", "c"
end
puts 'hello' # => nil
# >> hello
```
## Installation
Add this line to your application's Gemfile:
gem 'ympfilter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ympfilter
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request