classTweetdefinitialize(user)@user=user@tweet=[]enddefsubmit_to_twittertweet_text=@tweet.join(' ')puts"#{@user}: #{tweet_text}"enddeftext(str)@tweet<<strenddefhashtag(str)@tweet<<"#"+strselfenddefmention(*users)users.eachdo|user|@tweet<<"@"+userendselfenddeftext(str)@tweet<<strselfendenddeftweet_as(user,text=nil,&block)tweet=Tweet.new(user)tweet.text(text)iftexttweet.instance_eval(&block)ifblock_given?tweet.submit_to_twitterendtweet_as'markkendall'domention'foo','bar'text'I made a DSL!'hashtag'hooray'end