Class: RuGUI::BaseViewHelper

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

Overview

A base class for view helpers.

Direct Known Subclasses

ApplicationViewHelper

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 = {}) ⇒ BaseViewHelper

Returns a new instance of BaseViewHelper.



7
8
9
# File 'lib/rugui/base_view_helper.rb', line 7

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.



15
16
17
# File 'lib/rugui/base_view_helper.rb', line 15

def framework_adapter
  framework_adapter_for('BaseViewHelper')
end

#post_registration(view) ⇒ Object

Called after the view helper is registered in a view.



20
21
# File 'lib/rugui/base_view_helper.rb', line 20

def post_registration(view)
end