Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mindapp/helpers.rb
Instance Method Summary collapse
Instance Method Details
#comment? ⇒ Boolean
388 389 390 |
# File 'lib/mindapp/helpers.rb', line 388 def comment? self[0]=='#' end |
#to_code ⇒ Object
391 392 393 394 395 396 397 398 |
# File 'lib/mindapp/helpers.rb', line 391 def to_code s= self.dup # s.downcase! # s.gsub! /[\s\-_]/, "" # s code, name = s.split(':') code.downcase.strip.gsub(' ','_').gsub(/[^#_\/a-zA-Z0-9]/,'') end |