HipByte / Flow

Cross-platform libraries for RubyMotion
BSD 2-Clause "Simplified" License
141 stars 29 forks source link

Require separated modules #42

Closed rafaeliga closed 7 years ago

rafaeliga commented 8 years ago

Is there a way to include only a module? Like "Net"?

Im trying something like, on Rakefile:

require 'motion-flow/flow/net'

Gemfile:

gem 'motion-flow', require: false

Thanks

jjaffeux commented 8 years ago

Not possible atm, it would require more logic as some module depend on other flow modules. At the moment they are all required in common.rb

rafaeliga commented 8 years ago

I see.

Should I close the issue or mark as improvement somehow?

andrewhavens commented 8 years ago

@rafaeliga @jjaffeux I have submitted a PR which attempts to start addressing this issue. It's not a final solution by any means, but hopefully gets the ball rolling in the right direction.