module TrialMod

Public Class Methods

append_features(the_class) click to toggle source
Calls superclass method
# File lib/rubyhacks.rb, line 1050
def TrialMod.append_features(the_class)
        puts the_class.box
        def the_class.bricks
                puts "Build a wall"
                @@box = "bricks"
        end
        @@wall = "long"
        the_class.class_accessor(:mortar, :wall, :elephant)
        the_class.mortar = "cement"
        the_class.elephant = "wall-smasher"
        super
end

Public Instance Methods

check_sweet() click to toggle source
# File lib/rubyhacks.rb, line 1065
def check_sweet
        @sweet = "bricks aren't sweet"
        puts @sweet
end