Use attr to add two attributes
class Dog attr :bark, true end dog = Dog.new dog.bark="Woof!" puts dog.bark # => Woof!