Class: Mapel::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/mapel.rb

Direct Known Subclasses

ImageMagick

Defined Under Namespace

Classes: ImageMagick

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source = nil) ⇒ Engine

Returns a new instance of Engine.



26
27
28
29
# File 'lib/mapel.rb', line 26

def initialize(source = nil)
  @source = source
  @commands = []
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



23
24
25
# File 'lib/mapel.rb', line 23

def command
  @command
end

#commandsObject

Returns the value of attribute commands.



24
25
26
# File 'lib/mapel.rb', line 24

def commands
  @commands
end

#outputObject (readonly)

Returns the value of attribute output.



23
24
25
# File 'lib/mapel.rb', line 23

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



23
24
25
# File 'lib/mapel.rb', line 23

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/mapel.rb', line 31

def success?
  @status
end