Sha256: d4513972eec400f763e7305ea40efb11e705a26fbebc0538fe23fa675dc8f901
Contents?: true
Size: 574 Bytes
Versions: 4
Compression:
Stored size: 574 Bytes
Contents
require 'miu' module Miu module Node def self.included(base) STDOUT.sync = true STDERR.sync = true base.extend ClassMethods end module ClassMethods attr_accessor :spec def description(value = nil) @description ||= self.name @description = value if value @description end def register(*args, &block) options = Miu::Utility.extract_options!(args) name = args.shift node = args.shift || self Miu.register name, node, options, &block end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
miu-0.2.3 | lib/miu/node.rb |
miu-0.2.2 | lib/miu/node.rb |
miu-0.2.1 | lib/miu/node.rb |
miu-0.2.0 | lib/miu/node.rb |