Method: CEML::Script#label
- Defined in:
- lib/ceml/lang/script.rb
#label ⇒ Object
195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/ceml/lang/script.rb', line 195 def label return title || begin return "unknown" unless simple? if simple_question "Question: #{simple_question}" elsif "Message: #{simple_message}" else "unknown" end end end |