S
Simon Strandgaard
I would like to execute some code at the point
when the 'class<<txt' is taking place..
But I cannot figure out how ?
server> ruby a.rb
server> cat a.rb
txt = "text"
class << txt
def included(parent)
puts "included"
end
def extended(parent)
puts "extended"
end
def self.included(parent)
puts "self.included"
end
def self.extended(parent)
puts "self.extended"
end
end
server>
when the 'class<<txt' is taking place..
But I cannot figure out how ?
server> ruby a.rb
server> cat a.rb
txt = "text"
class << txt
def included(parent)
puts "included"
end
def extended(parent)
puts "extended"
end
def self.included(parent)
puts "self.included"
end
def self.extended(parent)
puts "self.extended"
end
end
server>