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



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

def name
  @name
end

Instance Method Details

#bind(sequence, &block) ⇒ Object



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

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

#to_tclObject



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

def to_tcl
  TclString.new(name)
end