Sha256: 9fa5800a97372537437d052ec4bb5236581dc6384fb863aaf8dc638b339d528a

Contents?: true

Size: 421 Bytes

Versions: 17

Compression:

Stored size: 421 Bytes

Contents

# Some template bindings share the controller with other template bindings based
# on a name.  This class stores those and provides helper methods to clear/set/get.
class GroupedControllers
  @@controllers = {}

  def initialize(name)
    @name = name
  end

  def get
    @@controllers[@name]
  end

  def set(controller)
    @@controllers[@name] = controller
  end

  def clear
    @@controllers.delete(@name)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
volt-0.7.23 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.22 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.21 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.20 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.19 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.18 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.17 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.16 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.15 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.14 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.13 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.12 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.10 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.9 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.8 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.7 lib/volt/page/bindings/template_binding/grouped_controllers.rb
volt-0.7.6 lib/volt/page/bindings/template_binding/grouped_controllers.rb