Class: Changi::Release

Inherits:
Object
  • Object
show all
Includes:
FlexibleAttributes
Defined in:
lib/changi/release.rb

Class Method Summary collapse

Methods included from FlexibleAttributes

included, #read_in_attributes

Class Method Details

.buildObject



6
7
8
# File 'lib/changi/release.rb', line 6

def build
  new.tap(&:read_in_attributes)
end

.demoObject



10
11
12
13
14
# File 'lib/changi/release.rb', line 10

def demo
  new.tap do |inst|
    attribute_names.each { |name| inst.send "#{name}=".to_sym, "<#{name}>" }
  end
end