From: Stefan Salewski Date: 2011-04-04T05:29:46+09:00 Subject: Re: Using variables in modules On Mon, 2011-04-04 at 02:37 +0900, spiralofhope wrote: > You're not defining a variable. You're defining a constant with the > capital G. Use lowercases and this should work just fine. > I know. Please note that lower case letter will not work in this context: module Gravity g = 9.81 end puts Gravity::g Gravity::g = 9.8102 puts Gravity::g >iii.rb:4: undefined method `g' for Gravity:Module (NoMethodError) Brian Candler and Stefano Crocco already answered my question, thanks.