Module: LambdaAccessor

Extended by:
ActiveSupport::Concern
Included in:
I18n::TranslationSpawner
Defined in:
lib/i18n_translation_spawner/lambda_accessor.rb

Overview

class A

include LambdaAccessor
lambda_accessor :test

def default_test_handler(*args)
   puts args.shift
end

end

b = A.new b.test('goof') b.test_handler = lambda {|*args| “—- #{args} —-”}

Defined Under Namespace

Modules: ClassMethods