module Shy

Public Class Methods

included(klass) click to toggle source
# File lib/shy.rb, line 4
def self.included(klass)
  klass.extend(DSL)
end
new(*attribute_names) click to toggle source
# File lib/shy.rb, line 8
def self.new(*attribute_names)
  warn 'Shy.new is deprecated, please use the Shy::DSL style instead.'
  Class.new do
    include Shy
    shy *attribute_names
  end
end
new(attributes={}) click to toggle source
# File lib/shy.rb, line 16
def initialize(attributes={})
  attributes.each do |name, value|
    send("#{name}=", value)
  end
end