forked from oneup/hotruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://hotruby.googlecode.com/svn/trunk@33 4fb8041d-b042-0410-9571-f50be27af959
- Loading branch information
yukoba@accelart.jp
committed
Jan 27, 2008
1 parent
6c3d3a3
commit 6db571e
Showing
8 changed files
with
476 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ goto end | |
|
||
:main | ||
ruby compile.rb %1\%1.rb -o %1\%1.js -p %1\%1_pretty.json | ||
copy %1\%1.js ..\web\js\test | ||
|
||
:end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class Pi | ||
def initialize hoge, hoge2 | ||
@a = 352.0 + hoge + hoge2 | ||
@@c = 3 | ||
end | ||
def getA | ||
@a | ||
end | ||
end | ||
|
||
class Pi2 < Pi | ||
def initialize hoge, hoge2 | ||
super | ||
@b = 110.0 + @@c | ||
end | ||
def calc | ||
getA / @b | ||
end | ||
end | ||
|
||
puts '335/113 = ' + Pi2.new(1, 2).calc |
Oops, something went wrong.