https://github.com/ekylibre/code_string
Class to manipulate code strings
https://github.com/ekylibre/code_string
Last synced: 27 days ago
JSON representation
Class to manipulate code strings
- Host: GitHub
- URL: https://github.com/ekylibre/code_string
- Owner: ekylibre
- License: mit
- Created: 2014-05-04T14:28:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T15:31:01.000Z (over 7 years ago)
- Last Synced: 2025-04-24T05:47:43.198Z (27 days ago)
- Language: Ruby
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE.txt
Awesome Lists containing this project
README
= CodeString
Class to manipulate code strings.
== Installation
Add this line to your application's Gemfile:
gem 'code_string'
And then execute:
$ bundle
Or install it yourself as:
$ gem install code_string
== Usage
$ "sum = 1 + 5".c
$ c = "sum = 1 + 5".c(:ruby)
$ puts c.to_formatted_s
# language: ruby
# encoding: US-ASCII
1: sum = 1 + 5== Contributing
1. Fork it ( https://github.com/ekylibre/code_string/fork )
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 a new Pull Request