Skip to content

EdwinRozario/RubyKeyword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

#RubykeyWord Gem rubykeyword is a gem that lets you know if a string is a Ruby Keyword or not. Find the definition of the keyword, example and also search for similar keywords in Ruby.

#Installation

gem install rubykeyword

#Require

require 'rubykeyword'

##Example string1 = "Thor" string2 = "end"

srting1.keyword?       # Will return false since its not a ruby keyword
srting2.keyword?       # Will return true as end is a ruby keyword
srting2.define         # Will return definition for keyword end
string2.example        # Will print an example for the keyword use
string2.example_string # Will return an example string
string2.seek           # Will return an Array of keywords similar to string2 

#Reference http://ruby-doc.org/docs/keywords/1.9/

Releases

No releases published

Packages

No packages published

Languages