Module: TrialMod

Included in:
DoubleJeopardy, Trial
Defined in:
lib/rubyhacks.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.append_features(the_class) ⇒ Object



1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
# File 'lib/rubyhacks.rb', line 1039

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

Instance Method Details

#check_sweetObject



1054
1055
1056
1057
# File 'lib/rubyhacks.rb', line 1054

def check_sweet
	@sweet = "bricks aren't sweet"
	puts @sweet
end