Class: Symphony::Base
- Inherits:
-
Object
- Object
- Symphony::Base
- Includes:
- Symphony
- Defined in:
- lib/symphony/symphony.rb
Instance Method Summary collapse
- #==(obj) ⇒ Object
-
#initialize(args = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Symphony
Constructor Details
#initialize(args = {}) ⇒ Base
Returns a new instance of Base.
191 192 193 194 195 |
# File 'lib/symphony/symphony.rb', line 191 def initialize(args={}) self.class.initialize_symphony_definitions() validate(args) assign_initial_values(args) end |
Instance Method Details
#==(obj) ⇒ Object
197 198 199 200 201 202 203 204 205 |
# File 'lib/symphony/symphony.rb', line 197 def ==(obj) return false if !obj.is_a?(self.class) self.class.symphony_definitions.each do |defn| return false if self.send(defn[:method_name]) != obj.send(defn[:method_name]) end return true end |