1 2345678910...
|
end
class Properties
def method_missing(property, *args)
return eval("@#{property}")
end
Language: Ruby (c) 2001, Richard Kilmer, rich@infoether.com LOC: 497 Savannah NonGNU : FreeRIDE (project search) : .../freeride/plugins/rubyide_fox_gui/fxscintilla/scintilla.rb
|
module Hobix
# The UriStr mixin ensures that URIs are supplied a to_str
# method and a to_yaml method which allows the URI to act more
# like a string. In most cases, Hobix users will be using URIs
# as strings.
Language: Ruby (c) 2003-2004 why the lucky stiff... LOC: 464 RubyForge : Hobix (project search) : .../hobix/hobix/lib/hobix/weblog.rb
|
module Module1
def method_missing(name, *args)
p "Module 1"
super(name, *args)
Language: Ruby LOC: 31 RubyForge (SVN) : bunraku (project search) : .../bunraku/bunraku/trunk/hacks/method_missing_chain_override.rb
|
module Module1
def method_missing(name, *args)
p "Module 1"
super(name, *args)
Language: Ruby LOC: 31 RubyForge (SVN) : bunraku (project search) : .../bunraku/tags/bunraku-3.0.0/hacks/method_missing_chain_override.rb
|
end
foo = Foo.new
puts foo.respond_to?(:method_missing)
puts foo.respond_to?(:blah)
class Foo
Language: Ruby LOC: 11 Codehaus (LiveTribe) : jbehave (project search) : .../jbehave/rbehave/trunk/spike.rb
|
alias old_method_missing method_missing
def method_missing(name, *args)
exname = name.to_s
Language: Ruby LOC: 16 Spider_rubyforge01 : RubyForge Snippet - IRB as a shell (project search) : .../repository/rubyforge/RubyForge_Snippet_-_IRB_as_a_shell/RFSnippet56.rb
|
module Module1
def method_missing(name, *args)
p "Module 1"
super(name, *args)
Language: Ruby LOC: 26 RubyForge (SVN) : bunraku (project search) : .../bunraku/bunraku/trunk/hacks/method_missing_chain.rb
|
module Module1
def method_missing(name, *args)
p "Module 1"
super(name, *args)
Language: Ruby LOC: 26 RubyForge (SVN) : bunraku (project search) : .../bunraku/tags/bunraku-3.0.0/hacks/method_missing_chain.rb
|
module Helpers
module HashKeyMethod
def method_missing(method, *args)
self[method.to_sym]
Language: Ruby LOC: 10 RubyForge (SVN) : Ruby Ghost Engine - Document Builder (project search) : .../rghost/rghost/lib/rghost/helpers.rb
|
module RGhost::UnlessHelpers #:nodoc:
module HashKeyMethod #:nodoc:
def method_missing(method, *args)
self[method.to_sym]
Language: Ruby LOC: 10 Spider_rubyforge01 : Ruby Ghost Engine - Document Builder (project search) : .../rghost-0.8.3.gem/data.tar.gz.---/lib/rghost/helpers.rb
|
#!/usr/bin/env ruby
# Example demonstrating "around" advice for method_missing. This is a technique for
# avoiding collisions when different toolkits want to override method_missing in the
# same classes, e.g., Object. Using around advice as shown allows a toolkit to add
Language: Ruby LOC: 26 RubyForge (SVN) : Aquarium: Aspects for Ruby (project search) : .../aquarium/trunk/aquarium/examples/method_missing_example.rb
|
#!/usr/bin/env ruby
# Example demonstrating "around" advice for method_missing. This is a technique for
# avoiding collisions when different toolkits want to override method_missing in the
# same classes, e.g., Object. Using around advice as shown allows a toolkit to add
Language: Ruby LOC: 26 RubyForge (SVN) : Aquarium: Aspects for Ruby (project search) : .../aquarium/trunk/aquarium/examples/method_missing_example.rb
|
attr_accessor :template
delegate :to_s, :to => :draw
# Forward all missing methods to <tt>template</tt>, since
# we may be trying to instantiate another Stencil object
# (and respond_to? ignores method_missing-handled methods)
Language: Ruby LOC: 10 RubyForge (SVN) : stencil (project search) : .../stencil/stencil/trunk/lib/stencil.rb
|
require 'test/minirunit'
test_check "Test Methods"
def testMethod
$toto = true
Language: Ruby LOC: 103 RubyForge (SVN) : Chizzle - A RubyCocoa Based Ruby IDE (project search) : .../trunk/ironruby/jruby.net/test/testMethods.rb
|
@options = options.dup
end
def method_missing(name, *args)
@collection.send name, *args
end
Language: Ruby LOC: 14 Spider_rubyforge01 : Stellr (project search) : .../data.tar.gz.---/lib/stellr/strategies/base.rb
|
@options = options.dup
end
def method_missing(name, *args)
@collection.send name, *args
end
Language: Ruby LOC: 14 Spider_rubyforge01 : Stellr (project search) : .../stellr-0.1.2/lib/stellr/strategies/base.rb
|
end
end
deflect_start(Numeric, :method_missing, deflector)
deflector2 = Deflector.new do |unit, id, name|
ingredient = Ingredient.ingredient(name, unit)
Language: Ruby LOC: 67 RubyForge (SVN) : DSL Kit (project search) : .../d/dslkit/trunk/examples/recipe2.rb
|
require File.dirname(__FILE__) + '/../spec/aquarium/spec_helper.rb'
require 'aquarium'
# Example demonstrating "around" advice for method_missing. This is a technique for
# avoiding collisions when different toolkits want to override method_missing in the
# same classes, e.g., Object. Using around advice as shown allows a toolkit to add
Language: Ruby LOC: 44 RubyForge (SVN) : Aquarium: Aspects for Ruby (project search) : .../aquarium/trunk/aquarium/examples/method_missing_example_spec.rb
|
module NotAMock
class Stub
def initialize(object_name, methods = {})
@name = object_name.to_s
@call_log = []
Language: Ruby LOC: 28 RubyForge (SVN) : Not A Mock (project search) : .../notamock/trunk/lib/not_a_mock/stub.rb
|
# This package installs method_missing handler to String class which handles
# to_xxxx_xxxx message to parse itself and convert into XxxxXxxx by sending
# parse message to XxxxXxxx class.
Language: Ruby LOC: 14 RubyForge (SVN) : string-to (project search) : .../s/string-to/string-to/lib/string_to.rb
|
module Luruju
module DynamicMethod
class IsNotMyRole < StandardError
end
Language: Ruby LOC: 16 Spider_rubyforge01 : LuRuJu (project search) : .../luruju-0.0.1.gem/data.tar.gz.---/lib/luruju/dynamic_method.rb
|
module Luruju
module DynamicMethod
class IsNotMyRole < StandardError
end
Language: Ruby LOC: 16 Spider_rubyforge01 : LuRuJu (project search) : .../luruju-0.0.1.tgz/luruju-0.0.1/lib/luruju/dynamic_method.rb
|
class Module
def method_missing(method_name, *args, &block)
@arg_sets ||= {}
@arg_sets[method_name] = [args, block]
Language: Ruby LOC: 16 RubyForge (SVN) : Tartan Text Parser (project search) : .../tags/0.1.0/lib/core_ext/module.rb
|
class Module
def method_missing(method_name, *args, &block)
@arg_sets ||= {}
@arg_sets[method_name] = [args, block]
Language: Ruby LOC: 16 RubyForge (SVN) : Tartan Text Parser (project search) : .../tags/0.1.1/lib/core_ext/module.rb
|
base.module_eval do
class << self
for meth in methods
undef_method(meth) if meth.to_s =~ /^assert_/ || meth.to_s =~ /^assert$/
end
Language: Ruby LOC: 60 RubyForge (SVN) : SpecUnit (project search) : .../spec-unit/spec-unit/lib/spec-unit/assert_helper.rb
|
1 2345678910...
|