>On 14/05/07, Vipul <[EMAIL PROTECTED]> wrote:
> class LoginInput
> @@userName = "Vipul.Goyal"
> end
> $ie.text_field(:id,"txtLoginID").set(LoginInput.userName)
I think the OO idea is that the client should not be able to directly
access a variable outside a class.
<code>
class Login_Input
attr_reader :user_name
def initialize
@user_name = "Vipul.Goyal"
end
end
login_input = Login_Input.new
p login_input.user_name
</code>
Though, I would be interested in other opinions on this.
aidy
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general