Scully87 / Meta_Programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meta Programming

####This is our Week 10 Day 1 challenge at Makers Academy. The idea is to learn how to use Meta Programming with Ruby.

#####Technologies Used:

  • Ruby
  • RSpec

#####To do List:

  • Use both method_missing and define_method
  • Pass "does not have award test" without writing the name of the method
  • Pass "can have badges awarded" without writing the name of the method

#####Tests:

  it "does not have an award" do
    expect(student.has_unixoid?).to be false
  end
  it "can have badges awarded" do
    student.award :unixoid
    expect(student.has_unixoid?).to eq true
  end

About


Languages

Language:Ruby 100.0%