Sha256: 7016f2c9e1e69fa27d24831cb24c618a8bb3abecec1fcd93a603b77488032b78

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

class Typero::Type
  attr_accessor :opts
  attr_accessor :value

  def initialize(value, opts={})
    @value = value
    @opts  = opts
  end

  # default validation for any type
  def validate(what)
    true
  end

  def get
    @value
  end

  def set
    @value
  end

  def default
    nil
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typero-0.3.6 ./lib/typero/type.rb
typero-0.3.4 ./lib/typero/type.rb