Method: RWebUnit::UsingPages.extended
- Defined in:
- lib/rwebunit/using_pages.rb
.extended(kclass) ⇒ Object
support Ruby 1.9
5 6 7 8 9 10 11 12 |
# File 'lib/rwebunit/using_pages.rb', line 5 def self.extended(kclass) caller_file = caller[1] if caller_file && caller_file =~ /^(.*):\d+.*$/ file = $1 dir = File.(File.dirname(file)) kclass.const_set "TestFileDir", dir end end |