Method: Train::Platforms::Platform#initialize
- Defined in:
- lib/train/platforms/platform.rb
#initialize(name, condition = {}) ⇒ Platform
Returns a new instance of Platform.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/train/platforms/platform.rb', line 8 def initialize(name, condition = {}) @name = name @condition = condition @families = {} @family_hierarchy = [] @platform = {} @detect = nil @title = name.to_s.capitalize # add itself to the platform list Train::Platforms.list[name] = self end |