Class: Ruckus::Mutator::Number

Inherits:
Mutator show all
Defined in:
lib/ruckus/mutator.rb

Overview

Wrap Number with Mutator, make to_i work.

Instance Method Summary collapse

Methods inherited from Mutator

#method_missing, #permute

Constructor Details

#initialize(base = 0, stack = []) ⇒ Number

Returns a new instance of Number.



288
# File 'lib/ruckus/mutator.rb', line 288

def initialize(base=0, stack=[]); super; end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ruckus::Mutator::Mutator

Instance Method Details

#to_iObject



289
# File 'lib/ruckus/mutator.rb', line 289

def to_i; @cur.to_i; end