This small Ruby script uses pandoc to convert The Rust Programming Language (compilation of the Rust guides) to epub.
- Install pandoc
- Copy
trpl-epub.rb
file torust/src/doc/trpl
(assuming your clone of the Rust repository is inrust/
)
This small Ruby script uses pandoc to convert The Rust Programming Language (compilation of the Rust guides) to epub.
trpl-epub.rb
file to rust/src/doc/trpl
(assuming your clone of the Rust repository is in rust/
)"use strict"; | |
var MyClass = (function() { | |
function MyClass(publicString) { | |
this.publicString = publicString; | |
}; | |
var privateString = "I'm a private string that can't be accessed directly"; | |
// ============================================================================ |
require 'test_helper' | |
require 'minitest/autorun' | |
module Tenderlove | |
class Spec < MiniTest::Spec | |
include ActiveSupport::Testing::SetupAndTeardown | |
include ActiveRecord::TestFixtures | |
alias :method_name :__name__ if defined? :__name__ | |
self.fixture_path = File.join(Rails.root, 'test', 'fixtures') |