Sha256: a96d77856e4a7feb877598258d0c567e0b0da1900dee143557af4aed08c2f4f2
Contents?: true
Size: 553 Bytes
Versions: 16
Compression:
Stored size: 553 Bytes
Contents
module StateMachines # Represents a type of module that defines instance / class methods for a # state machine class HelperModule < Module #:nodoc: def initialize(machine, kind) @machine = machine @kind = kind end # Provides a human-readable description of the module def to_s owner_class = @machine.owner_class owner_class_name = owner_class.name && !owner_class.name.empty? ? owner_class.name : owner_class.to_s "#{owner_class_name} #{@machine.name.inspect} #{@kind} helpers" end end end
Version data entries
16 entries across 16 versions & 2 rubygems