Class Ruport::Controller::Options
In: lib/ruport/controller.rb
Parent: OpenStruct

Structure for holding controller options. Simplified version of HashWithIndifferentAccess

Methods

[]   []=   to_hash  

Public Instance methods

Indifferent lookup of an attribute, e.g.

 options[:foo] == options["foo"]

Sets an attribute, with indifferent access.

 options[:foo] = "bar"

 options[:foo] == options["foo"] #=> true
 options["foo"] == options.foo #=> true
 options.foo #=> "bar"

Returns a Hash object. Use this if you need methods other than []

[Validate]