Sha256: 7743e79af3a0b165b3ea4cca9aa25c3e0a239b41b54b0a01349c88aa6ec30387

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

require 'active_support/all'
require 'yaml'
require 'hashie'
require "rubicure/version"
require "rubicure/concerns/util"
require "rubicure/series"
require "rubicure/girl"
require "rubicure/core"
require "rubicure/movie"

module Rubicure
  def self.core
    Rubicure::Core.instance
  end
end

module Precure
  def self.method_missing(name, *args, &block)
    Rubicure.core.send(name, *args, &block)
  end
end

module Cure
  def self.method_missing(name, *args)
    if Rubicure::Girl.valid?(name)
      Rubicure::Girl.find(name)
    else
      super
    end
  end

  [Cure.peace, Cure.cure_peace].each do |peace|
    class << peace
      HANDS =
        (['グー']   * 13) +
        (['チョキ'] * 14) +
        (['パー']   * 15) +
        ['グッチョッパー']
      MESSAGE = <<EOF
ピカピカピカリン
ジャンケンポン!
(%s)
EOF
      def pikarin_janken
        print_by_line(MESSAGE % HANDS.sample)
      end
      alias janken pikarin_janken
    end
  end
end

module Shiny
  def self.luminous
    Rubicure::Girl.find(:luminous)
  end
end

module Milky
  def self.rose
    Rubicure::Girl.find(:rose)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubicure-0.1.2 lib/rubicure.rb
rubicure-0.1.1 lib/rubicure.rb