Permalink
Browse files

ugh.... I should have read the DOM javascript impl

  • Loading branch information...
1 parent 521ae00 commit 56c53b4c54358b1386b25892fe8dd8ee89c35708 @tenderlove committed Aug 30, 2008
Showing with 7 additions and 7 deletions.
  1. +3 −3 lib/zomg/idl/visitors/ruby_sexp.rb
  2. +2 −2 test/conversions/test_attribute.rb
  3. +2 −2 zomg.gemspec
@@ -63,11 +63,11 @@ def visit_Exception(o)
def visit_Attribute(o)
attributes = []
o.children.each { |name|
- name = name.accept(self).to_s
+ name = name.accept(self)
# Reader
attributes <<
- [:defn, :"get#{classify(name)}",
+ [:defn, name,
[:scope, [:block, [:args],
[:fcall, :raise, [:array,
[:call, [:const, :NotImplementedError], :new]]
@@ -76,7 +76,7 @@ def visit_Attribute(o)
]
unless o.readonly
attributes <<
- [:defn, :"set#{classify(name)}",
+ [:defn, :"#{name}=",
[:scope, [:block, [:args, :_],
[:fcall, :raise, [:array,
[:call, [:const, :NotImplementedError], :new]]
@@ -24,15 +24,15 @@ def test_to_ruby_sexp
[:scope,
[:block,
[:defn,
- :getAwesome,
+ :awesome,
[:scope,
[:block,
[:args],
[:fcall,
:raise,
[:array, [:call, [:const, :NotImplementedError], :new]]]]]],
[:defn,
- :setAwesome,
+ :awesome=,
[:scope,
[:block,
[:args, :_],
View
@@ -1,10 +1,10 @@
Gem::Specification.new do |s|
s.name = %q{zomg}
- s.version = "1.0.2.20080828210656"
+ s.version = "1.0.2.20080830162937"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aaron Patterson"]
- s.date = %q{2008-08-28}
+ s.date = %q{2008-08-30}
s.default_executable = %q{omfg}
s.description = %q{ZOMG is an OMG IDL parser. ZOMG will generate a Ruby AST from an IDL AST, and will even generate ruby (by means of Ruby2Ruby). == FEATURES/PROBLEMS: * Parses IDL, generates Ruby * Ships with OMFG the Object Management File Generator * Ignores nested structs/unions * Treats out/inout parameters are DIY == SYNOPSIS: In code: ZOMG::IDL.parse(File.read(ARGV[0])).to_ruby Command line: $ omfg lol.idl > roflmao.rb}
s.email = ["aaronp@rubyforge.org"]

0 comments on commit 56c53b4

Please sign in to comment.