I hereby claim:
- I am crmejia on github.
- I am crmejia (https://keybase.io/crmejia) on keybase.
- I have a public key ASC1Lj52MdY553YfmSQW4w2sCn23pOe-i0ljYQ8zoHyhDAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def valid_element(element_name, proposed_symbol) | |
#not parsing as is not required | |
#checking size | |
return false if proposed_symbol.size != 2 | |
proposed_symbol.downcase! | |
element_name.downcase! | |
#checking both letters are present | |
return false unless element_name.include?(proposed_symbol[0]) # && element_name.include?(proposed_symbol[1]) |