------ extPart_000_000F_01C654E5.5149E8C0
Content-Type: text/plain;
charset s-ascii"
Content-Transfer-Encoding: 7bit
I am new to ruby from java and had a question on blocks.
Can a block be applied to a writeable attribute or setter? I keep getting
errors so I
am assuming no but I wanted to double check in case my syntax is incorrect.
Thanks for the help,
Jeff
class Test
def initialize(one, two)
@one ne
@two wo
end
def one ne)
@one ne;
Yield;
end
attr_reader :one, :two
attr_writer :two
end
test est.new("Hello", 2);
test.one { puts "Test Block" }
------ extPart_000_000F_01C654E5.5149E8C0--