Commits

Steven! Ragnarök committed 73c1f98

Testing the behavior of super.

  • Participants
  • Parent commits eebcdfa

Comments (0)

Files changed (1)

File super_inheritance.rb

+module Mega
+  def mega
+    if block_given? then yield "The mega is seven!" else "The mega is seven!" end
+  end
+end
+
+
+class Byte
+  include Mega
+
+  def mega
+    super do |mega_str|
+      mega_str.sub "seven", "nine"
+    end
+  end
+end