Class: JrubyCoercion::Converter

Inherits:
SimpleDelegator
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/jruby_coercion/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(converter) ⇒ Converter

Constructor



15
16
17
18
# File 'lib/jruby_coercion/converter.rb', line 15

def initialize(converter)
  @converter = converter
  super(!!@converter)
end

Instance Attribute Details

#converterObject (readonly)

Returns the value of attribute converter.



10
11
12
# File 'lib/jruby_coercion/converter.rb', line 10

def converter
  @converter
end

Instance Method Details

#to_aryObject

Public Instance Methods



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

def to_ary
  [ self, @converter ]        
end