Categories: None [Edit]
conjugatefr
== ABOUT
A simple program and library to conjugate french verbs.
Parses responses to requests to an online reference site.
=== Executable
ConjugateFR comes with the executable binary +conjugatefr+.
To view information about it's supported arguments, run
conjugatefr --help
=== Custom Renderers
To make a custom renderer, just type
require conjugatefr/renderer
and then make a class that extends +Renderer+.
An example is as follows:
require 'conjugatefr/renderer'
class ExampleRenderer < Renderer
def pre
puts "This goes before the words."
end
def word (name, words)
print "#{name}:"
words.each do |word|
print " #{word}"
end
end
def post
puts "This goes after the words."
end
def description; "Renders an example format."; end
end
# Add to the Renderers list (For CLI and other programs that use it.)
$renderers["Example"] = ExampleRenderer.new
To try this out, save it as +erend.rb+ and then run:
conjugatefr -R ./erend.rb -r Example
It will produce the output:
This goes before the words.
someword: someconjugation etc etc
... (more words will be here)
This goes after the words.
=== The Library
The library can be included with +require conjugatefr+. It includes the
+ConjugateFR+ class.
Total
Ranking: 74,265 of 192,263
Downloads: 13,289
Daily
Ranking: 122,457 of 192,239
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | htmlguy |