Module: Wedding

Defined in:
lib/wedding.rb,
lib/wedding/cli.rb,
lib/wedding/bride.rb,
lib/wedding/groom.rb,
lib/wedding/version.rb,
lib/wedding/ceremony.rb,
lib/wedding/default_config.rb,
lib/wedding/post_install_message.rb

Defined Under Namespace

Modules: DefaultConfig Classes: Bride, CLI, Ceremony, Groom

Constant Summary collapse

VERSION =

No major releases scheduled after this one

"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ceremonyObject

There is a weddig, there is a ceremony. Time for celebrations.



19
20
21
# File 'lib/wedding.rb', line 19

def ceremony
  @ceremony
end

.default_configObject

Getter method for default_config for the wedding.



32
33
34
# File 'lib/wedding.rb', line 32

def default_config
  DefaultConfig.options
end

Class Method Details

.new(config = nil) ⇒ Object

Returns new Ceremony object that can be used to query details

about the wedding

Parameters:

  • config (Hash) (defaults to: nil)

    A hash of config values for wedding. Check default_config.rb



26
27
28
29
# File 'lib/wedding.rb', line 26

def new(config = nil)
  config = config ? default_config.merge(config) : default_config.dup
  Ceremony.new(config)
end

.post_install_messageObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/wedding/post_install_message.rb', line 3

def post_install_message
  footer = <<'EOS'

==== Release notes for wedding gem ====

Now that you have installed this gem, you earn our immense respect.
You are the star guest of our wedding, you will receive our special
attention.
Go ahead and type `wedding` (wihtout backticks) on the command
prompt to see the list of commands available with it. Print your
personal invitation, and fire your browser to see the location of
the event. We love you!

Prerita and Jai

=======================================

EOS
end