Method: Kintama::Context::ClassMethods#find_definition
- Defined in:
- lib/kintama/context.rb
#find_definition(&block) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/kintama/context.rb', line 72 def find_definition(&block) if defined? RUBY_ENGINE case RUBY_ENGINE when "ruby", "jruby" Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('1.9') ? find_definition_yarv(&block) : find_definition_1_8 when "rbx" find_definition_rbx(&block) end else find_definition_1_8 end end |