Sha256: 63dd025eb060c6109f0194b4334066c89f88dfa381aca6875f4508bf31751c96
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
module Cucumba class Railz # This class represents some object in rails application class Klass class NotFoundError < Exception end def initialize(constant,server) @server = server if @server.has_constant?(constant) @constant = constant else raise NotFoundError end end def method_missing(method,*args) if @server.constant_has_method?(@constant,method) @server.invoke_method_on_constant(@constant,method,args) else super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumba-0.0.6 | lib/cucumba/railz/klass.rb |