Class: JrubyCoercion::Converter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- JrubyCoercion::Converter
- Extended by:
- Forwardable
- Defined in:
- lib/jruby_coercion/converter.rb
Instance Attribute Summary collapse
-
#converter ⇒ Object
readonly
Returns the value of attribute converter.
Instance Method Summary collapse
-
#initialize(converter) ⇒ Converter
constructor
Constructor.
-
#to_ary ⇒ Object
Public Instance Methods.
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
#converter ⇒ Object (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_ary ⇒ Object
Public Instance Methods
23 24 25 |
# File 'lib/jruby_coercion/converter.rb', line 23 def to_ary [ self, @converter ] end |