Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (42 sloc) 1.287 kb
require 'date'
require 'time'
require 'bigdecimal'
require 'bigdecimal/util'
# Base module which adds Attribute API to your classes
module Virtus
# Represents an undefined parameter used by auto-generated option methods
Undefined = Object.new.freeze
# Extends base class with class and instance methods
#
# @param [Class] descendant
#
# @return [Class]
#
# @api private
def self.included(descendant)
descendant.extend(DescendantsTracker)
descendant.extend(ClassMethods)
descendant.send(:include, InstanceMethods)
end
end # module Virtus
require 'virtus/support/descendants_tracker'
require 'virtus/class_methods'
require 'virtus/instance_methods'
require 'virtus/attribute_set'
require 'virtus/typecast/boolean'
require 'virtus/typecast/numeric'
require 'virtus/typecast/string'
require 'virtus/typecast/time'
require 'virtus/attribute'
require 'virtus/attribute/object'
require 'virtus/attribute/array'
require 'virtus/attribute/boolean'
require 'virtus/attribute/date'
require 'virtus/attribute/date_time'
require 'virtus/attribute/numeric'
require 'virtus/attribute/decimal'
require 'virtus/attribute/float'
require 'virtus/attribute/hash'
require 'virtus/attribute/integer'
require 'virtus/attribute/string'
require 'virtus/attribute/time'
Jump to Line
Something went wrong with that request. Please try again.