GithubHelp home page GithubHelp logo

chozo's People

Contributors

reset avatar sethvargo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

rramsden

chozo's Issues

uninitialized constant Hashie::Mash::HashWithIndifferentAccess

I can't figure out if I'm missing something blindingly obvious, or if this is a bug.

class Test < Chozo::Config::Abstract
irb >> attribute "foo.bar", type: String, default: "foo"
attribute "foo.bar", type: String, default: "foo"
irb >> end
end
NameError: uninitialized constant Hashie::Mash::HashWithIndifferentAccess
from /Users/tmay/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chozo-0.6.1/lib/chozo/hashie_ext/mash.rb:11:in coercions' from /Users/tmay/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chozo-0.6.1/lib/chozo/hashie_ext/mash.rb:15:incoercion'
from /Users/tmay/.rbenv/versions/1.9.3-p385/lib/ruby/gems/1.9.1/gems/chozo-0.6.1/lib/chozo/hashie_ext/mash.rb:24:in `[]='

from_io

It would be nice if I could load stuff from an IO object instead of just from files. Simialr to the from_file mixin, a from_io mixin would take anything that is IO-like [#read most likely] and instance eval its contents.

VariaModel should have a method_missing mode

Sometimes I want a config object that validates many of the options, but may also allow arbitrary options to be set.

If such a VariaModel were put into method missing mode, then model.unknown_attr="foo" would set @attributes[:unknown_attr] to "foo", without any validation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.