Project

moron_text

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
It won't be useful for you. It is meant to be used with the WWW_App gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 1.5
~> 0.9

Runtime

>= 2.0.0
 Project Readme

Note:

This is not ready yet.

Installation

gem 'moron_text'

Moron_Text

Example: Menu

  moron = Moron_Text.new(<<-EOF)
    CORRECT /*
    This is the right answer.
    WRONG /*
    This is the 1st wrong answer.
    WRONG /*
    This is the 2nd wrong answer.
    WRONG /*
    This is the 3rd wrong answer.
    ON /* CORRECT
    You chose wisely.
  EOF

  moron.run do | name, line, text |
    case name
    when 'CORRECT'
    when 'WRONG'
    when 'ON'
    when :text
    else
      text.next
    end
  end