HomeSubmitted by Kurt on October 22, 2006 - 7:04pm.
UMLETA specializes in software tools and development for LAMP environments. We support UML and meta-model translation tools. We also develop general software; everything from websites to custom system software. Not working in Java? Our open-source tools can translate UML and other meta-models into Perl and Ruby. Working in multiple languages? Translate a single model or meta-model into multiple target languages. Need a special model or meta-model transformation? Let us craft a custom solution for you! UMMF is the Universal Meta-Model Framework. It is an open-source implementation of the UML 1.5 meta-model and MOF 1.4 meta-models written in Perl. It can transform meta-models, and models from popular UML editors, such as Poseidon, into executable Perl, Java and Ruby code. Multimethod: Ruby Package for Multimethod DispatchingSubmitted by Kurt on November 21, 2006 - 4:15pm.
See: http://rubyforge.org/projects/multimethod/ The RubyForge package multimethod
require 'multimethod'
class A
multimethod %q{
def foo(x) # matches any argument type
"#{x.inspect}"
end
}
multimethod %q{
def foo(Fixnum x) # matches any Fixnum
"Fixnum #{x.inspect}"
end
}
multimethod %q{
def foo(Numeric x) # matches any Numeric
"Numeric #{x.inspect}"
end
}
end
a = A.new
puts a.foo(:symbol) # ==> ":symbol"
puts a.foo(45) # ==> "Fixnum 45"
puts a.foo(12.34) # ==> "Numeric 12.34"
Currency: Ruby Package for FX and MoneySubmitted by Kurt on October 29, 2006 - 10:03pm.
See: http://rubyforge.org/projects/currency/ The RubyForge package currency Currency::Money uses a scaled integer representation of the monetary value and performs accurate conversions to and from string values. |
||