Top Level Namespace

Defined Under Namespace

Modules: Gem, Platform, Rake Classes: Echoe, String

Instance Method Summary collapse

Instance Method Details

#reset_target(target) ⇒ Object

or Gem::PLATFORM::RUBY maybe



62
63
64
65
66
# File 'lib/echoe/platform.rb', line 62

def reset_target target #:nodoc:
  $platform = target
  Object.send(:remove_const, "RUBY_PLATFORM")
  Object.send(:const_set, "RUBY_PLATFORM", target)
end