class Gtk::Action

Public Class Methods

new(name, options={}) click to toggle source
# File lib/rabbit/gtk.rb, line 91
def initialize(name, options={})
  initialize_raw(name,
                 options[:label],
                 options[:tooltip],
                 options[:stock_id])

end
Also aliased as: initialize_raw

Public Instance Methods

_activate(&block)
Alias for: activate
activate(&block) click to toggle source
# File lib/rabbit/action.rb, line 6
def activate(&block)
  @block = block
  _activate
ensure
  @block = nil
end
Also aliased as: _activate
block_given?() click to toggle source
# File lib/rabbit/action.rb, line 13
def block_given?
  not @block.nil?
end
call(*args, &block) click to toggle source
# File lib/rabbit/action.rb, line 17
def call(*args, &block)
  @block.call(*args, &block)
end
initialize_raw(name, options={})
Alias for: new