SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can you access external objects?

    I would like to keep some of my objects (methods, modules, etc), in an external file. Is there a way to access and execute those objects, or perhaps another complete ruby program, from within my current program?

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Oklahoma
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jeryst
    I would like to keep some of my objects (methods, modules, etc), in an external file. Is there a way to access and execute those objects, or perhaps another complete ruby program, from within my current program?
    Code:
    require 'yourlibrary'
    a = YourClass.new

  3. #3
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •