Class: Potter::Types::Integer

Inherits:
Type
  • Object
show all
Defined in:
lib/potter/types.rb

Instance Attribute Summary

Attributes inherited from Type

#options

Instance Method Summary collapse

Methods inherited from Type

#from, #generate, #initialize, #klass, #name, #new, #to_sym

Methods included from OptionHelpers

#assign_option!, #assign_options!

Constructor Details

This class inherits a constructor from Potter::Types::Type

Instance Method Details

#parse(o) ⇒ Object



61
# File 'lib/potter/types.rb', line 61

def parse(o) = o.to_i