Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sdague-rscm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdague-rscm

  • 0.5.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Overview

Typed accessors creates a set of accessors with a predefined typed. Often when dealing with webservices all the data comes back as strings, but you really want to be working with these things as numbers or dates. Manually converting them is duplication, and can be error prone.

== Example

class Foo float_accessor :float date_accessor :date end

f = Foo.new => #Foo:0xb7a3dd44 f.float = "1.4" => "1.4" f.float => 1.4 f.float = "1" => "1" f.float => 1.0 f.date = "2009-10-30" => "2009-10-30" f.date => #<Date: 4910269/2,0,2299161> f.date.to_s => "2009-10-30"

== Installation

First install the gem

gem install typed_accesors

Then include it in your environment

require "typed_accessors"

== Authors

Creator: Pat Ladd Packager: Sean Dague

== License

This is released under an MIT license, see COPYING for full details.

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc