Skip to content

da99/moron_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A ruby gem to parse options file according to my personal preferences.

Resources

License

Stars

Watchers

Forks

Packages

No packages published