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



1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
# 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

Instance Method Details

#check_sweetObject



1065
1066
1067
1068
# File 'lib/rubyhacks.rb', line 1065

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