Skip to content

Instantly share code, notes, and snippets.

View domgetter's full-sized avatar

Dominic Muller domgetter

View GitHub Profile
% tree
.
├── Rakefile
├── bin
│ └── gem_name
├── gem_name.gemspec
├── lib
│ ├── gem_name
│ │ └── other_file.rb
│ └── gem_name.rb
#in child_class_test.rb
word = Word.new
#EOF child_class_test.rb
# in lib/word.rb
require_relative 'noun'
Each line is a class. An indented class is a child class (e.g. PluralNoun < Noun)
Sentence
Syntax
IndependentClause
DependentClause
NounPhrase
VerbPhrase
Word
Noun
Each line is a class. An indented class is a child class (e.g. PluralNoun < Noun)
Sentence
Syntax
IndependentClause
DependentClause
NounPhrase
VerbPhrase
Word
Noun
Sentence
Syntax
IndependentClause
DependentClause
NounPhrase
VerbPhrase
Word
Noun
SingularNoun
PluralNoun
Each line is a class. An indented class is a child class (e.g. PluralNoun < Noun)
Sentence
Syntax
IndependentClause
DependentClause
NounPhrase
VerbPhrase
Word
Noun
Each line is a class. An indented class is a child class (e.g. PluralNoun < Noun)
Sentence
Syntax
IndependentClause
DependentClause
NounPhrase
VerbPhrase
Word
Noun
irb(main):003:0> ::Bundler::VERSION
=> "1.3.5"
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.2
- RUBY VERSION: 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]
- INSTALLATION DIRECTORY: /home3/my_username/ruby/gems
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /home3/my_username/ruby/gems/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
> ruby -v
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02