class OpenStruct

ostruct for ruby 1.9 doesn't implement [] operater This a monkey patch my copying the ruby 2.0 version

Public Instance Methods

[](name) click to toggle source

Fetch an object by id or URL @param [String] name @return [Object]

@api private

# File lib/starwars/overrides/ostruct.rb, line 13
def [](name)
  @table[name.to_sym]
end