Method: Helper.variable_type_to_description
- Defined in:
- lib/helper.rb
.variable_type_to_description(type) ⇒ Object
与えられた型情報の意味文字列を取得
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/helper.rb', line 192 def variable_type_to_description(type) case type when :boolean "true/false " when :integer "整数 " when :float "小数点数 " when :string, :select "文字列 " when :multiple "文字列(複数)" when :directory "フォルダパス" when :file "ファイルパス" else raise UnknownVariableType, type end end |