Class: Tk::BindTag

Inherits:
Struct show all
Defined in:
lib/ffi-tk/command/bindtags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



61
62
63
# File 'lib/ffi-tk/command/bindtags.rb', line 61

def name
  @name
end

Instance Method Details

#bind(sequence = None, &block) ⇒ Object



62
63
64
# File 'lib/ffi-tk/command/bindtags.rb', line 62

def bind(sequence = None, &block)
  Bind.bind(name, sequence, &block)
end

#to_tclObject



70
71
72
# File 'lib/ffi-tk/command/bindtags.rb', line 70

def to_tcl
  TclString.new(name)
end

#unbind(sequence) ⇒ Object



66
67
68
# File 'lib/ffi-tk/command/bindtags.rb', line 66

def unbind(sequence)
  Bind.unbind(name, sequence)
end