Module: Apotomo

Defined in:
lib/apotomo.rb,
lib/apotomo/event.rb,
lib/apotomo/widget.rb,
lib/apotomo/version.rb,
lib/apotomo/railtie.rb,
lib/apotomo/test_case.rb,
lib/apotomo/event_handler.rb,
lib/apotomo/widget_shortcuts.rb,
lib/apotomo/widget/tree_node.rb,
lib/apotomo/rails/view_helper.rb,
lib/apotomo/request_processor.rb,
lib/apotomo/javascript_generator.rb,
lib/apotomo/widget/event_methods.rb,
lib/apotomo/invoke_event_handler.rb,
lib/apotomo/rails/controller_methods.rb,
lib/apotomo/widget/javascript_methods.rb,
lib/generators/apotomo/widget_generator.rb

Defined Under Namespace

Modules: EventMethods, Generators, JavascriptMethods, Rails, TreeNode, WidgetShortcuts Classes: Event, EventHandler, InvokeEventHandler, JavascriptGenerator, Railtie, RequestProcessor, TestCase, Widget

Constant Summary

VERSION =
'1.2.6'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.js_frameworkObject

Returns the value of attribute js_framework



8
9
10
# File 'lib/apotomo.rb', line 8

def js_framework
  @js_framework
end

.js_generatorObject (readonly)

Returns the value of attribute js_generator



8
9
10
# File 'lib/apotomo.rb', line 8

def js_generator
  @js_generator
end

Class Method Details

.setup {|_self| ... } ⇒ Object

Apotomo setup/configuration helper for initializer.

Usage/Examples:

Apotomo.setup do |config|
  config.js_framework = :jquery
end

Yields:

  • (_self)

Yield Parameters:

  • _self (Apotomo)

    the object that the method was called on



17
18
19
# File 'lib/apotomo.rb', line 17

def setup
  yield self
end