Module: Mealy::HelperMethods

Defined in:
lib/mealy/helper_methods.rb

Overview

Various helper methods

Class Method Summary collapse

Class Method Details

.Label(convertee) ⇒ Label

Converts types to Labels. DSL#transition calls this to convert anything to a Label.

Returns:


11
12
13
14
15
# File 'lib/mealy/helper_methods.rb', line 11

def self.Label(convertee)
  if convertee.kind_of?(Label) then convertee
  else Label.new(convertee)
  end
end