Top Level Namespace

Defined Under Namespace

Modules: KeepYourHead, Project Classes: ExceptionAssert, ExceptionNotImplemented, ExceptionShouldNotBeReached

Instance Method Summary collapse

Instance Method Details

#assert(test, msg = nil) ⇒ Object



93
94
95
# File 'lib/Keepyourhead/Utils.rb', line 93

def assert( test, msg = nil )
  throw ExceptionAssert.new(msg) unless test
end


32
# File 'lib/Keepyourhead/Utils.rb', line 32

alias print puts

#printSignals(widget) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/Keepyourhead/Utils.rb', line 61

def printSignals(widget)
  widget.class.signals(false).each do |v|   
    widget.signal_connect(v) do
      print "#{v} is occured."
    end
  end
end

#puts(*args) ⇒ Object



33
34
35
36
# File 'lib/Keepyourhead/Utils.rb', line 33

def puts(*args)
  print args
  print caller
end

#requireExp(name) ⇒ Object



22
23
24
# File 'lib/Keepyourhead/Utils.rb', line 22

def requireExp(name)
  require File.expand_path( name, $requireBase )
end