Class: RubyCurses::WidgetShortcuts::Ws

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/core/util/widgetshortcuts.rb

Direct Known Subclasses

WsFlow, WsStack

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Ws

Returns a new instance of Ws.



36
37
38
# File 'lib/rbcurse/core/util/widgetshortcuts.rb', line 36

def initialize config={}
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



35
36
37
# File 'lib/rbcurse/core/util/widgetshortcuts.rb', line 35

def config
  @config
end

Instance Method Details

#[](sym) ⇒ Object



39
40
41
# File 'lib/rbcurse/core/util/widgetshortcuts.rb', line 39

def [](sym)
  @config[sym]
end

#[]=(sym, val) ⇒ Object



42
43
44
# File 'lib/rbcurse/core/util/widgetshortcuts.rb', line 42

def []=(sym, val)
  @config[sym] = val
end