Class: MiniMagick::CommandBuilder
- Inherits:
-
Object
- Object
- MiniMagick::CommandBuilder
- Defined in:
- lib/mini_magick.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
- #+(value) ⇒ Object
-
#initialize ⇒ CommandBuilder
constructor
A new instance of CommandBuilder.
- #method_missing(symbol, *args) ⇒ Object
Constructor Details
#initialize ⇒ CommandBuilder
Returns a new instance of CommandBuilder.
178 179 180 |
# File 'lib/mini_magick.rb', line 178 def initialize @args = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
182 183 184 185 |
# File 'lib/mini_magick.rb', line 182 def method_missing(symbol, *args) @args << "-#{symbol}" @args += args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
176 177 178 |
# File 'lib/mini_magick.rb', line 176 def args @args end |
Instance Method Details
#+(value) ⇒ Object
187 188 189 |
# File 'lib/mini_magick.rb', line 187 def +(value) @args << "+#{value}" end |