is this consistent with ruby-class A
class A
attr_accessor :value
def initialize(value)
@value = value
end
def double_value
@value * 2
end
def self.static_method
puts "This is a static method."
end
end
# Example of using the class
obj = A.new(10)
puts obj.value
puts obj.double_value
obj.value = 20
puts obj.value
A.static_method