Class.new # syntactic sugar so that it looks familiar class Trainer end # new instance of a class with an # initializer, getter, and setter Trainer = Struct.new :name
top secret contents omitted... “Mission Success!” end end g = Government.new g.launch_nuke! #=> NoMethodError g.send :launch_nuke! #=> ‘Mission Success!’