1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
Commit graph

10 commits

Author SHA1 Message Date
kares
bc3ca955cc fix passing scope to when delegating to access + add an attribute aware access impl; make sure Ruby::Object has correct parent scope set 2012-01-07 17:01:38 +01:00
kares
f4b462216e introduce an access module for routing (ruby) Scriptable calls 2012-01-06 18:29:22 +01:00
kares
cb2016334e handle nagative < -1 arrities; a better getClassName; a useful == for wrapper objects 2012-01-06 16:45:20 +01:00
kares
8e6b51cfb4 JS style function call argument slicing/filling + fn.length fix to be always >= 0 2011-12-14 13:22:46 +01:00
kares
0e2274a685 re-add #methodcall for JS functions accessed from Ruby; use JRuby's include_package in favor of import 2011-12-14 11:49:35 +01:00
kares
e2ffe61ebf support for delegating to hash like method [] / []= when wrapped subject supports them 2011-12-13 17:46:04 +01:00
kares
21434b05df extract and reuse Scriptable get/has/put implementation across all ruby wrappers ... 2011-12-13 13:43:07 +01:00
kares
ff18fb111d move class definitions under a Rhino::Ruby module, re-added support for "caching" returned wrapped ruby values due JS === comparison 2011-12-13 12:35:57 +01:00
kares
cdf770d95b pass a scope to initialize for all ruby wrapper classes and attempt to initialize parent scope and prototype whenever it is present; override BaseFunction's #getLength and #getFunctionName for RubyFunction 2011-12-12 22:34:27 +01:00
kares
21f62eb245 add a ruby class wrapper - acts as a JS contructor, reimplement RubyObject#get to treat accessors as properties but otherwise arbitrary methods with arity == 0 should rather act as functions, move all ruby wrappers to a single unit 2011-12-12 22:17:42 +01:00