class Strut::SlimCommandFactory
Public Class Methods
new()
click to toggle source
# File lib/strut/slim_command_factory.rb, line 5 def initialize @command_id = 0 end
Public Instance Methods
make_call_command(metadata, instance, property, value = nil)
click to toggle source
# File lib/strut/slim_command_factory.rb, line 24 def make_call_command(metadata, instance, property, value = nil) id = next_command_id CallCommand.new(id, metadata, instance, property, value) end
make_import_command(metadata, namespace)
click to toggle source
# File lib/strut/slim_command_factory.rb, line 14 def make_import_command(metadata, namespace) id = next_command_id ImportCommand.new(id, metadata, namespace) end
make_make_command(metadata, instance, class_name)
click to toggle source
# File lib/strut/slim_command_factory.rb, line 19 def make_make_command(metadata, instance, class_name) id = next_command_id MakeCommand.new(id, metadata, instance, class_name) end
next_command_id()
click to toggle source
# File lib/strut/slim_command_factory.rb, line 9 def next_command_id @command_id += 1 @command_id.to_s end