Class: RuGUI::BaseModel

Inherits:
BaseObject show all
Includes:
InitializeHooks, LogSupport, ObservablePropertySupport
Defined in:
lib/rugui/base_model.rb

Instance Method Summary collapse

Methods included from InitializeHooks

included, #initialize_with_hooks, update_initialize_method

Methods included from LogSupport

included, #logger

Methods included from ObservablePropertySupport

#==, #copy_observable_properties_from, included, #initialize_observable_property_support, #observable_properties, #property_changed, #register_observer, #reset!, #update_observable_properties

Methods inherited from BaseObject

#inspect

Methods included from FrameworkAdapters::FrameworkAdapterSupport

#framework_adapter_for, included, #load_framework_adapter

Constructor Details

#initialize(observable_properties_values = {}) ⇒ BaseModel

Returns a new instance of BaseModel.



6
7
8
# File 'lib/rugui/base_model.rb', line 6

def initialize(observable_properties_values = {})
  initialize_observable_property_support(observable_properties_values)
end

Instance Method Details

#framework_adapterObject

Returns the framework_adapter for this class.



14
15
16
# File 'lib/rugui/base_model.rb', line 14

def framework_adapter
  framework_adapter_for('BaseModel')
end

#post_registration(controller) ⇒ Object

Called after the model is registered in a controller.



19
20
# File 'lib/rugui/base_model.rb', line 19

def post_registration(controller)
end