FXRuby Create Lean and Mean GUIs with Ruby Pragmatic Programmers 1st Edition Lyle Johnson pdf download
FXRuby Create Lean and Mean GUIs with Ruby Pragmatic Programmers 1st Edition Lyle Johnson pdf download
https://ebookfinal.com/download/fxruby-create-lean-and-mean-guis-
with-ruby-pragmatic-programmers-1st-edition-lyle-johnson/
https://ebookfinal.com/download/pragmatic-unit-testing-in-c-with-
nunit-pragmatic-programmers-1st-edition-andy-hunt/
https://ebookfinal.com/download/programming-ruby-1-9-2-0-the-
pragmatic-programmers-guide-fourth-edition-dave-thomas/
https://ebookfinal.com/download/getting-mean-with-mongo-express-
angular-and-node-1st-edition-simon-holmes/
https://ebookfinal.com/download/distributed-programming-with-ruby-1st-
edition-mark-bates/
Continuous Testing with Ruby Rails and JavaScript 1st
Edition Ben Rady
https://ebookfinal.com/download/continuous-testing-with-ruby-rails-
and-javascript-1st-edition-ben-rady/
https://ebookfinal.com/download/scripted-gui-testing-with-ruby-1st-
edition-ian-dees/
https://ebookfinal.com/download/raven-scripting-java-builds-with-
ruby-1st-edition-matthieu-riou/
Everyday Scripting with Ruby For Teams Testers and You 1st
Edition Brian Marick
https://ebookfinal.com/download/everyday-scripting-with-ruby-for-
teams-testers-and-you-1st-edition-brian-marick/
FXRuby Create Lean and Mean GUIs with Ruby
Pragmatic Programmers 1st Edition Lyle Johnson Digital
Instant Download
Author(s): Lyle Johnson
ISBN(s): 1934356077
Edition: 1
File Details: PDF, 1.91 MB
Year: 2008
Language: english
What readers are saying about FXRuby
FXRuby is a rich, mature GUI toolkit that Lyle has maintained and
documented very well for years. With the addition of this excellent
book, this toolkit becomes only that much more usable.
Hal Fulton
Author, The Ruby Way
I was paid to develop a GUI app using Ruby back in 2003, and I
quickly settled on FOX/FXRuby as the right toolkit because of the
exceptional quality of the bindings and the high level of support Lyle
provided. My only regret? That I didn’t have this book! With it open on
your desk and the online references loaded in your browser, nothing
should be stopping you from building an amazing desktop application
using Ruby.
Nathaniel Talbott
Founder and Developer, Terralien, Inc.
Lyle’s deep knowledge of FXRuby ensures that this engaging book will
prepare you to make cross-platform GUIs in very little time at all.
Austin Ziegler
Software Designer and Developer
FXRuby: Create Lean and Mean GUIs with Ruby is a well-written
text straight from the horse’s mouth: a book about FXRuby from the
author of FXRuby. You can’t get better than that, unless, of course,
the library wrote the book itself.
Jeremy McAnally
Developer/technical writer, ENTP
Lyle Johnson
Every precaution was taken in the preparation of this book. However, the publisher
assumes no responsibility for errors or omissions, or for damages that may result from
the use of information (including program listings) contained herein.
Our Pragmatic courses, workshops, and other products can help you and your team
create better software and have more fun. For more information, as well as the latest
Pragmatic titles, please visit us at
http://www.pragprog.com
ISBN-10: 1-934356-07-7
ISBN-13: 978-1-934356-07-4
Printed on acid-free paper with 50% recycled, 15% post-consumer content.
First printing, March 2008
Contents
Foreword 10
Acknowledgments 12
1 Introduction 13
1.1 What’s in This Book? . . . . . . . . . . . . . . . . . . . . 13
1.2 Who Is This Book For? . . . . . . . . . . . . . . . . . . . 14
1.3 How to Read This Book . . . . . . . . . . . . . . . . . . . 14
1.4 Where to Get Help . . . . . . . . . . . . . . . . . . . . . . 15
1.5 A Word About Versions . . . . . . . . . . . . . . . . . . . 18
II FXRuby Fundamentals 78
Bibliography 211
Index 212
Foreword
The FOX Toolkit is a library for designing user interfaces and has been
under development for more than ten years. FOX got its start as my
hobby project, called Free Objects for X (FOX), because my initial target
environment was the X Window system.
One of the early FOX adopters was CFD Research Corporation, where
Lyle and I worked. The user interface developers at the company were
pleasantly surprised with the concise coding needed to lay out their
interfaces, having been used to Motif, where placing a single button
would often require a dozen lines of code. The same task would often
require only a single line of code in FOX. Bolstered by this success,
the FOX library rapidly went through a number of changes; the library
got ported to Microsoft Windows, and support for 3D programming was
added. All the key ingredients were in place to transfer the company’s
GUI applications to the FOX platform.
FOX has now reached a point where developers can write code and be
reasonably confident that it will compile and run on numerous plat-
forms, from PCs running Windows to “big-box” Unix machines from
Sun and IBM. FOX continues to grow. In the past few years, the focus
has been on internationalization and localization, as well as multipro-
cessing support.
The FOX Toolkit is written in C++, and until other language bindings
became available, you had to program in C++ to use FOX. Now, with
the creation of the FXRuby library, the capabilities of the FOX Toolkit
have become available in the Ruby programming language.
In this book, you’ll learn how to build FOX-based graphical user inter-
faces within Ruby. In Part I, you’ll write your first small FXRuby appli-
cation, starting with detailed instructions on how to get FXRuby exten-
sions installed in your Ruby programming environment. You’ll work
through several iterations toward a functional application that illus-
trates many critical features of FXRuby programs.
F OREWORD 11
In Part II, the book goes into more detail on event-driven programming
and how to connect the user interface to useful executable Ruby code.
Moving on to the available controls and widgets, you’ll learn how to use
layout managers to place your user interface elements (this is a par-
ticularly useful chapter, because automatic layout is a foreign concept
even to many seasoned Windows programmers).
After you’ve read this book, you’ll be able to design great user interfaces
for your Ruby programs!
Lyle Johnson
January 30, 2008
lyle@lylejohnson.name
Chapter 1
Introduction
FXRuby is a library for developing powerful and sophisticated cross-
platform graphical user interfaces (GUIs) for your Ruby applications.
It’s based on the FOX Toolkit, a popular open source C++ library devel-
oped by Jeroen van der Zijp. What that means for you as an application
developer is that you’re able to write code in the Ruby programming
language that you already know and love, while at the same time tak-
ing advantage of the performance and functionality of a fully featured,
highly optimized C++ toolkit.
Although FOX doesn’t have the same level of name recognition as some
other GUI toolkits, it has been available since 1997 and is still under
continuous development. FXRuby has been under development since
late 2000, and the first public release was in January 2001. I’ve been
the lead developer during that entire time, with a number of community
volunteers contributing patches along the way. It’s a tricky proposition
to guess the size of the user community for an open source project, but
according to the RubyForge statistics there have been close to 45,000
downloads of FXRuby since the project was moved there (and almost
18,000 before that, when it was hosted at SourceForge). Questions
posted to the FXRuby users mailing list are often answered by myself,
Jeroen van der Zijp (the developer of FOX), or one of the other longtime
members of the FXRuby community.
1. Let’s face it, you don’t have time to read a book that long, what with all of those books
about Rails that you haven’t gotten around to reading yet.
W HERE TO G ET H ELP 15
If you don’t want to do all of that typing, you can cheat and download
the source code (a compressed tar archive or a zip file).2
In the second part of the book, we’ll revisit some of the topics that
we covered while developing the example application, and we’ll go into
more detail about why things work the way they do. We’ll also cover
some additional topics that wouldn’t have fit neatly into the example
application but that are still important for you to be familiar with.
Along the way, you’ll see various conventions we’ve adopted.
Live Code
Most of the code snippets we show come from full-length, running
examples that you can download. To help you find your way, if a
code listing can be found in the download, there’ll be a bar above
the snippet (just like the one here):
Download hello.rb
require 'fox16'
app = Fox::FXApp.new
main = Fox::FXMainWindow.new(app, "Hello, World!" ,
:width => 200, :height => 100)
app.create
main.show(Fox::PLACEMENT_SCREEN)
app.run
This contains the path to the code within the download. If you
are reading the PDF version of this book and your PDF viewer
supports hyperlinks, you can click the bar, and the code should
appear in a browser window. Some browsers (such as Safari) will
mistakenly try to interpret some of the templates as HTML. If this
happens, view the source of the page to see the real source code.
Mailing Lists
Two different mailing lists are dedicated to FXRuby. The announce-
ments list is a very low-traffic list that’s primarily used to notify users
Online Documentation
Despite rumors to the contrary, there is actually a good deal of online
documentation for both FOX and FXRuby, if you know where to look
for it.
3. http://rubyforge.org/mail/?group_id=300
4. http://sourceforge.net/mail/?group_id=3372
5. http://www.fox-toolkit.org/doc.html
6. http://www.fox-toolkit.net/
W HERE TO G ET H ELP 17
API Documentation
As you (probably) knew before you bought this book, it’s not a refer-
ence manual. The API documentation for FXRuby is fairly comprehen-
sive and freely available, so there’s no point in trying to duplicate that
material here. To view the latest and most accurate API documentation,
point your web browser to the copy hosted at the FXRuby website.8 If
you installed FXRuby via RubyGems, you should have a local copy of
the documentation as well. To view the HTML documentation that RDoc
generated when you installed the gem, first start the gem server:
$ gem_server
[2007-05-09 17:18:04] INFO WEBrick 1.3.1
[2007-05-09 17:18:04] INFO ruby 1.8.6 (2007-03-13) [i686-darwin8.8.1]
[2007-05-09 17:18:04] INFO WEBrick::HTTPServer#start: pid=427 port=8808
7. http://www.fxruby.org/doc/book.html
8. http://www.fxruby.org/doc/api/
A W ORD A BOUT V ERSIONS 18
1. Actually, a good bit of FXRuby is written in Ruby, but that doesn’t change how you
use it.
Discovering Diverse Content Through
Random Scribd Documents
then ironically advises his readers to place in such their entire
happiness.
So palpable is the bitter irony of the author throughout the book,
and even in the twenty-first verse of the third chapter, yet by no
manner of interpretation can this specialized text be made to mean
that beasts are annihilated after death, while men rise again and
soar above earthly things to honor and glory. Ironically the writer
assumes in it that his readers do not know the difference between
the spirit of man and that of beast, and, reasoning from that
position, advises them that “there is nothing better for a man than
that he should eat and drink, and that he should make his soul enjoy
good in his labor.”
From what has been shown, it is evident that the passage from
Psalms does not even contain the idea of annihilation as regards
beasts, and that the one from Ecclesiastes is entirely
misapprehended. That they have no bearing upon the subject must
now be manifest. We cannot, therefore, resist the conclusion that
the Scriptures do not deny future life to the inferior animals.
This admission gives courage for a step still further forward. Man’s
latest achievement is to conceive that all existence is a unit. One
spirit pervades the whole natural world, an emanation from the Spirit
of Him who sitteth enthroned in the Eternal Heavens, and who not
only is, as Moses declares, “God of the spirits of all flesh,” but God of
the spirits of all animate nature. We cannot divorce the two great
kingdoms of nature. If there is a futurity of existence for man, whom
we are told was “made a little lower than the angels,” but who in
these latter days seems to have deteriorated, and who in thousands
of instances displays a character far less noble and honorable than
that of the dog which he kennels and feeds, then there must be for
the so-called brute, the companion of his joys and his sorrows. If for
beast, bird, reptile, fish and insect, and none can be so foolish in the
face of the most indubitable evidence to deny it, then there must be
for tree, shrub and flower, for God, who is infinite in love, mercy and
charity, would not be God if solely concerned with the future of the
smallest fractional part of His children. Man is psychically related to
all life. There is soul, in some sort of development, in everything;
and certainly God meant in His grand scheme of redemption to lift
the world, not a portion of it, but the entire world, out of its lower
ideas into its higher beauties and realities.
FUTURE LIFE.
T
hat the Scriptures, contrary to popular tradition, do not deny a
future life to the lower animals has already been conclusively
shown. But do they declare anything in favor of another world
for beast as well as for man? This is a question which we shall now
endeavor to answer. As to man’s immortality, the Old Testament
Scriptures teach the doctrine by inference rather than by direct
assertion, for the reason, as has been presumed, that the writers of
the several books, which were selected at a comparatively late
period from among many others and formed into the volume
popularly designated the Bible, assumed as a matter of course that
man was immortal, and therefore did not concern themselves about
a matter which they supposed everybody knew. But as far as the Old
Testament goes, inference tells more strongly in favor of the beast’s
immortality than that of man. Although in either case there does not
appear to be any definite assertion of a futurity of existence, yet
there is no such denial of the immortality of the beast as has already
been shown in the case of the man.
Beasts, as readers of the Old Testament only too well know, were
included in the merciful provision of the Sabbath, which, in its
essence, was a spiritual and not simply a physical ordinance. And,
again, we find many provisions in the ancient Scriptures against
maltreating the lower animals, or giving them unnecessary pain, and
these provisions stand side by side in the Divine Law with those
which apply to man. All are familiar with the prohibition of “seething
a kid in its mother’s milk,” and the non-muzzling of the ox in treading
out the corn lest he should suffer the pangs of hunger in the
presence of the food which he may not eat. Even bird’s nesting was
regulated by Divine Law. “If a bird’s nest chance to be before thee in
the way in any tree, or on the ground, whether they be young ones,
or eggs, and the dam sitting upon the young, or upon the eggs, thou
shalt not take the dam with the young: But thou shalt in any wise let
the dam go, and take the young to thee; that it may be well with
thee, and that thou mayest prolong thy days.” Moreover, as many
animals must be killed daily, some for sacrifice and others solely for
food, the strictest regulations were enjoined that their death should
be sharp and quick, and that the whole of their blood should be
poured out upon the ground lest they suffer lingering pain.
In keeping with the same consideration felt by Deity towards the
kid and ox and bird, as expressed in the Law, we would refer to the
few concluding sentences of the Book of Jonah:—
“Thou hast had pity on the gourd, for the which thou hast not
labored, neither madest it grow; which came up in a night, and
perished in a night.
“And should I not spare Nineveh, that great city, wherein are more
than six score thousand persons that cannot discern between their
right hand and their left hand; and also much cattle?”
“Every beast of the forest is mine,” saith the Lord, “and the cattle
upon a thousand hills.” And again, “I know all the fowls of the
mountains: and the wild beasts of the field are mine.” Similar
passages, in which God announces himself as the protector of the
beast as well as of man, could be given, for the Scriptures are full of
them. Who does not recall the well-known saying of our Lord
respecting the lives of the sparrows: “Are not two sparrows sold for
a farthing? and one of them shall not fall on the ground without the
notice of your Father.”
Cowper in his “Task,” makes allusion to this branch of our subject
in the following lines:—
“Man may dismiss compassion from his heart,
But God will never. When He charged the Jew
To assist his foe’s down-fallen beast to rise;
And when the bush-exploring boy, that seized
The young, to let the parent-bird go free;
Proved He not plainly that His meaner works,
Are yet His care, and have an interest all—
All in the universal Father’s love?”
One passage there is which certainly does point to a future for the
beast as well as for man, and which places them both on the very
same plane. It is found in Genesis, ninth chapter and fifth verse, and
constitutes a part of the law which was delivered to Noah, and which
was subsequently incorporated in the fuller law given through
Moses. “And surely your blood of your lives will I require,” said God
to Noah and his sons, “at the hand of every beast will I require it,
and at the hand of every man; at the hand of every man’s brother
will I require the life of man.” In Exodus, chapter twenty-one and
twenty-eighth verse, we read, “If an ox gore a man or a woman,
that they die: then the ox shall be surely stoned, and his flesh shall
not be eaten; but the owner of the ox shall be quit.”
While there are no passages of Scripture, as has been seen, which
deny immortality of life to the lower animals, yet there are certainly
some which tend to show it by inference. But the Scriptures were
written for human beings, and not for the lower animals, and
therefore it could hardly be expected that any information could be
gained therefrom on the subject. As we find so few direct references
to the future state of man, it is not at all to be expected that we
should receive direct instruction upon the after-life of the beast.
But just as man has had within himself for untold ages an intuitive
witness to his own immortality, yet there are those, lovers and
friends of the so-called brute, who have an instinctive sense that
animals, some of whom surpass in love, unselfishness, generosity,
conscience and self-sacrifice many of their human brethren, must
share with him in addition to these virtues an immortal spirit in
which they take their rise. No more eminent personage than Bishop
Butler was a believer in this idea. Substantially he asserts that the
Scriptures give no reasons why the lower animals should not possess
immortal souls. Similar sentiments have been voiced by equally
distinguished writers.
Southey, writing of the death of a favorite spaniel that had been
the companion of his boyhood, says:—
“Ah, poor companion! when thou followedst last
Thy master’s parting footsteps to the gate
Which closed forever on him, thou didst lose
Thy best friend, and none was left to plead
For the old age of brute fidelity.
But fare thee well. Mine is no narrowed creed;
And He who gave thee being did not frame
The mystery of Life to be the sport
Of merciless man. There is another world
For all that live and move—a better one!
Where the proud bipeds, who would fain confine
Infinite Goodness to the little bounds
Of their own charity, may envy thee.”
Thus does Lamartine, in “Jocelyn’s Episode,” beautifully express
himself in addressing a faithful and affectionate canine by the name
of Fido:—
“I cannot, will not, deem thee a deceiving,
Illusive mockery of human feeling,
A body organized, by fond caress
Warmed into seeming tenderness;
A mere automaton, on which our love
Plays, as on puppets, when their wires we move.
No! when that feeling quits thy glazing eye,
’Twill live in some blest world beyond the sky.”
Not by man alone have these higher qualities been accorded to
the brute. Women have praised the good within the lower animals,
and been quite as willing to share with them the benefits of an
immortal life. Eugenie de Guérin, a woman distinguished for her
devotional piety, and an author of no mean repute, was, like the
most of her sex, quite passionately fond of pets. Hers was a turtle-
dove. Its voice was the first to greet her in the morning. There was
a pleasure in its soft, gentle cooings, as they fell upon her ear, that
sent a sweet consolation to her busy, thinking soul. But the time
came at last when she must part with her treasure. The morn
dawned bright, an August morning, and the bird was well and
happy, but, with the falling of the shadows at even-tide, its little life
went out. A bitter trial it was for the mistress, who loved with a
perfect love her feathered friend. While wrestling with her intense
sorrow, and after she had sincerely placed its mortal remains in a
dainty cavity beneath the roses, it was that she wrote: “I have a
tolerably strong belief in the souls of animals, and I should even like
there to be a little paradise for the good and gentle, like turtle-
doves, dogs and lambs. But what to do with wolves and other
wicked animals? To damn them?—that embarrasses me.”
Less devotional, perhaps, and looking rather to logic than to
intuition, was the mind of Mrs. Somerville. With such a difference in
constitution between the two women, we would naturally look for
the greatest divergence of opinion upon a matter of this kind, but,
astonishing to relate, there is noticeable a marked unanimity.
Speaking of death, and the accompanying change of environing
objects, this gifted writer, in her eighty-ninth year, says in her
“Memoirs”:—
“I shall regret the sky, the sea, with all their beautiful coloring; the
earth, with its verdure and flowers; but far more shall I grieve to
leave animals that have followed our steps affectionately for years,
without knowing for certainty their ultimate fate, though I firmly
believe that the living principle is never extinguished. Since the
atoms of matter are indestructible, as far as we know, it is difficult to
believe that the span which gives to their union life, memory,
affection, intelligence and fidelity is evanescent.
“Every atom in the human frame, as well as in that of animals,
undergoes a periodical change by continual waste and renovation:
the abode is changed, not its inhabitant. If animals have no future,
the existence of many is most wretched. Multitudes are starved,
cruelly beaten, and loaded during life; many die under a barbarous
vivisection.
“I cannot believe that any creature was created for
uncompensated misery: it would be contrary to the attributes of
God’s mercy and justice. I am sincerely happy to find that I am not
the only believer in the immortality of the lower animals.”
To have given the many opinions that have been expressed by the
good and wise of the past in favor of the belief that animals
received, in common with man, a particle of the divine essence, and
hence became immortal, would have extended this chapter beyond
intended limits. We have room for just another witness. No one is
better known for his convictions upon this subject than the late Dr.
Wood, whose contributions to natural history are known the world
over. Speaking of the death of his dog Rory, a creature that
manifested in the flesh the strongest affection for his keeper, the
Doctor says:—
“I could not believe that an animal which would die of grief, as he
died, for the absence of his master, would have his existence limited
to this present world, and that such intensity of love should
terminate at the same moment that the material heart ceased to
beat.”
When we think of the apparent inequality that is everywhere to be
seen in the lives both of man and beast, we cannot believe, as Mrs.
Somerville has remarked, that any being was “created for
uncompensated misery.” Some human beings are endowed with
everything that a man can desire—health, strength, riches,
accomplishments and capacity for enjoyment—while others are
destitute of all these accessories to happiness. Putting aside the fact
that those whose lots seem to be the most enviable are the least to
be envied, we cannot help acknowledging that this disparity does
exist, and that the earthly lot of some is very hard, while that of
others is very easy. But we must remember that there is taught in
the New Testament the grand doctrine of Compensation. Paul
alludes to this when he remarks that the sufferings of this world are
not to be compared with the glories of the world to come, and that
the troubles, trials and tribulations of this life are but the precursor
of that glorified existence where all these things will be utterly
unknown. That some such arrangement would be nothing more than
justice there can be no question, and that some principle of Divine
Justice must exist was instinctively known long before it was
explicitly declared by the inspired apostle, for references to such
compensation are found throughout the Psalms. Even Job himself,
sunk as he was in the very depth of afflictions, could say: “Though
He slay me, yet will I trust in Him; but I will maintain my own ways
before Him. He also shall be my salvation; for an hypocrite shall not
come before Him.” So far, then, as man is concerned, this problem of
apparent inequality is not so difficult of solution, for he knows only
too well that in spite of his hard and bitter earth-life that Divine
Justice will be more than vindicated in the life beyond the grave to
which he aspires. But in the case of the lower animals, granting that
they have no future existence, what, I ask, becomes of Divine
Justice? In this land of enlightenment we meet with many animals
that are treated with the greatest kindness by their masters, and
others, endowed with capacities that are not a whit inferior to their
more fortunate brethren, that are treated with the utmost cruelty.
While one is petted and pampered, another is abused and given over
to the pangs of hunger and starvation. If there is a future life for
these animals, it is simply impossible to recognize in their Maker that
justice which sensible, reasoning man should expect. Such an
injustice, as shown by the lives which we have contrasted, would be
too flagrant for any human being to perpetrate, unless such a being
was wholly deficient in the ideas of right and wrong. But on the
supposition that these animals possess immortal souls, and that
there is for them a future life in which these souls shall be developed
to their fullest capacities, then these apparent discrepancies can be
reconciled with Absolute Justice and Perfect Love. In His dealings
with the lower animals, as with ourselves, God looks to the spiritual
rather than the material world, and by the means of the one
instructs and prepares his pupils for the other. With Paul I firmly
believe that suffering in the present world has for its object a
preparation for and an introduction to a future life, and therefore am
thoroughly convinced that any creature capable of suffering has in
that capacity its passport to an eternal world.
Another step, that is, the possession of Individuality, as connected
with Immortality, now presses forward for consideration. As for man,
did he not possess Individuality, no diverseness of management
would be needed, for all would be treated in a similar manner. No
two faces in man are precisely alike, for the very simple reason that
no two souls, of which the countenance is an indication, are alike.
The same rule, no matter what may be affirmed to the contrary,
holds good among the lower animals. To the casual observer no
apparent difference can be detected between any two individuals of
a flock of sheep, a portrait of one equally resembling that of any
other. But a shepherd, who understands his business, will readily
distinguish every sheep of his flock, as well as describe the mental
peculiarities of each individual. One ordinary yellow canary looks just
like another yellow canary to the ordinary vision, while in reality the
mental character of each bird is impressed just as strongly upon its
countenance as are human qualities upon that of man. This quality it
is, both in man and beast, that implies a separate treatment for each
individual, and becomes a plea for an immortality of life. I am not
alone in this idea. It is simply astounding how Individuality in the
lower animals is ignored by man. The generality of grooms treat all
horses as though they were just so many machines turned out of
the same mould, and to be treated just like machines. There is in
every species a double kind of Individuality. One kind there is that is
common to the entire species, and then there is in addition to this
common characteristic another that distinguishes each separate
being from its fellows. It is the former that makes a species what it
is, and there can be no doubt that each will exist in the future life,
and that both may be capable of development. The dog, the horse,
the lion and the elephant, and in truth all animals that may be fitted
to survive, will be in the other world what they are in this. They will
be better animals in that world, just as we hope to be better men,
but they will not approach us any nearer than they do in the earth-
life.
Man does not, as some are foolish enough to claim, lower the
condition of humanity the least by granting immortality to the lower
animals. If they be immortal, as the evidence adduces most strongly
shows, there is not the slightest use of denial. We cannot shirk a
fact, and even if we could, we ought not to do it. Such an argument,
which seeks to elevate man by depreciating his lower fellow-
creatures, is not very creditable to humanity. In announcing the
belief that the lower animals share immortality with man in the
higher world, as they share mortality in this, does not claim for them
the slightest equality. Man will be man and beast will be beast, and
insect will be insect, in the next world as they are in this. They are
living exponents of Divine Ideas, as is evident from the Scriptures
and the teachings of science, and will be wanted to continue in the
world of spirit the work which they have begun in the world of
matter. True it is, as has been asserted, that because a man can
transmit his ideas to the lower animals, there is evidence that they
possess a spirit which is able to communicate with the spirit of man.
When a man gives an order to his dog, and is obeyed, there is proof
that both possess spirits, similar in quality, though differing in
degree. We know that to give an order to a plant would be useless
and absurd, because the plant has not the spirit that can respond to
the spirit of the man in the same manner that a dog’s or a horse’s
spirit can, but the inability so to respond does not prove that the
plant is devoid of a spirit. That the spirit of the plant does respond to
the spirit of the man, when it adapts itself to the conditions which
the spirit of the man has imposed upon it, there can be no question,
or the many hundred plants which have been reclaimed from a state
of wildness by a judicious and careful management upon the part of
man would have been among the impossibilities of modern
civilization. The spirit of man must have entered into the spirit of the
plant, and held communion therewith, or the world to-day would not
have been blessed with its manifold cereals, fruits and vegetables,
all of which have been rendered possible for use by the spirit of man
entering into an understanding with the nature, wants and peculiar
dispositions of the plants about him. No less are plants living
exponents of Divine Ideas than worms, insects, beasts and men are,
and as such living exponents, they are as much needed in the future
existence, at least such as are fitted to continue in the spirit-world
the work begun in the world of matter, as are the higher forms of
animal beings. As plants go a great ways towards making this earth-
life a paradise of beauty and delight, and have ever been associated
through the ages with animal life, each of the two great kingdoms of
life from simple beginnings attaining to higher and still higher
development up to the present period—the Era of Mind—it cannot be
possible that the two will have become suddenly divorced when the
temporal or earth-life is about to pass into the eternal or spirit-life.
Heaven would not be Heaven without the plants that we have
cultured, and tended, and admired.
Concluding, then, let me say, I claim not for the lower animals the
slightest equality with man. What I claim for them is a higher status
in creation than is generally attributed to them. I claim for them a
future life, where they will receive a just compensation for the
sufferings which so many of them have to undergo in this world.
Most of the cruelties which are perpetrated upon animals are due to
the habit which man has, in his exalted opinion of self, of
considering them as mere automata, without susceptibilities, without
reason and without the capacity of a future. That I have achieved
the purpose, with which I set out, of proving that all life is immortal,
or that soul exists in plants and animals, I think must be admitted. If
this doctrine of immortality shall have the effect of bringing about a
more humane treatment of the animals over which man has been
given dominion, and thus contribute, be it ever so little, to their well-
being and happiness, even in this life, then the object attained will
be felt to be a just and worthy recompense for the thought and
labor which have been expended in its support and defence. Not
alone are we of the upper walks of being made the possessors of
the inner life, but all nature shares it in common with us, and love is
its expression and the method of its action.
THE END.
Transcriber’s Notes
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com