Module: RuGUI::FrameworkAdapters::FrameworkAdapterSupport

Included in:
BaseObject, PropertyObserver
Defined in:
lib/rugui/framework_adapters/framework_adapter_support.rb

Defined Under Namespace

Modules: CommonClassAndInstanceMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



29
30
31
32
# File 'lib/rugui/framework_adapters/framework_adapter_support.rb', line 29

def self.included(base)
  base.send(:include, CommonClassAndInstanceMethods)
  base.extend(CommonClassAndInstanceMethods)
end

Instance Method Details

#framework_adapter_for(class_name) ⇒ Object



6
7
8
9
10
# File 'lib/rugui/framework_adapters/framework_adapter_support.rb', line 6

def framework_adapter_for(class_name)
  @framework_adapter ||= {}
  load_framework_adapter(class_name) unless @framework_adapter[class_name]
  @framework_adapter[class_name]
end

#load_framework_adapter(class_name) ⇒ Object



12
13
14
# File 'lib/rugui/framework_adapters/framework_adapter_support.rb', line 12

def load_framework_adapter(class_name)
  @framework_adapter[class_name] = class_adapter_for(class_name).new(self)
end