Class: Canis::WidgetShortcuts::Ws

Inherits:
Object
  • Object
show all
Defined in:
lib/canis/core/util/widgetshortcuts.rb,
lib/canis/core/util/oldwidgetshortcuts.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.



33
34
35
# File 'lib/canis/core/util/widgetshortcuts.rb', line 33

def initialize config={}
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



32
33
34
# File 'lib/canis/core/util/widgetshortcuts.rb', line 32

def config
  @config
end

Instance Method Details

#[](sym) ⇒ Object



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

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

#[]=(sym, val) ⇒ Object



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

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