Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :my_symbol:
- :symbol1
- :symbol2
- :another_symbol
- def my_method
- if @data.has_key? my_symbol <- @data is how I check my yml file
- [:my_symbol].inject (0) do |symbol|
- if symbol.match /symbol1/
- count += 50
- elsif symbol.match /symbol2/
- count += 100
- end
- count
- end
- end
- can't convert Symbol into Integer (TypeError)
- ./pages/mysymbol.rb:42:in `[]'
- undefined method: match
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement