Module: RubyEx

Defined in:
lib/ruby_ex.rb

Constant Summary collapse

VersionId =
::Version.parse("dev-ruby/ruby_ex-0.5_p2")

Class Method Summary collapse

Class Method Details

.dirObject



19
20
21
# File 'lib/ruby_ex.rb', line 19

def dir
  @@dir ||= Pathname.new(__FILE__).dirname.expand_path
end

.each(&block) ⇒ Object



23
24
25
26
# File 'lib/ruby_ex.rb', line 23

def each ( &block )
  file_list.each(&block)
  self
end

.file_listObject



15
16
17
# File 'lib/ruby_ex.rb', line 15

def file_list
  @@file_list ||= PathList[dir + '(**/*).rb'].exclude(/\bsession\/error.rb\b/)
end

.import_all!Object



28
29
30
# File 'lib/ruby_ex.rb', line 28

def import_all!
  file_list.import!
end

.skip(file) ⇒ Object



32
33
34
# File 'lib/ruby_ex.rb', line 32

def skip ( file )
  false
end