Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jinda_engine/helpers.rb,
app/helpers/jinda_engine/jinda_helper.rb
Instance Method Summary collapse
-
#comment? ⇒ Boolean
Put comment in freemind with # Sample Freemind #ctrs:ctrs&Menu.
- #to_code ⇒ Object
Instance Method Details
#comment? ⇒ Boolean
Put comment in freemind with # Sample Freemind #ctrs:ctrs&Menu
884 885 886 |
# File 'lib/jinda_engine/helpers.rb', line 884 def comment? self[0]=='#' end |
#to_code ⇒ Object
887 888 889 890 891 892 893 894 |
# File 'lib/jinda_engine/helpers.rb', line 887 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 |