I have:
def self.host
@@host ||= something
end
now I want to convert it into this:
class << self
defined_method "host" do
class_variable_set ????
how do I "convert" ||= to class_variable_set ?
I have:
def self.host
@@host ||= something
end
now I want to convert it into this:
class << self
defined_method "host" do
class_variable_set ????
how do I "convert" ||= to class_variable_set ?