Sha256: 56bdcc9414c026e40677c1cd1e5a4dee278b54f7e7550abf05a34acdc0eea105

Contents?: true

Size: 497 Bytes

Versions: 38

Compression:

Stored size: 497 Bytes

Contents

module Cure
  module CosmoExt
    def transform!(style = nil)
      return super(style) unless style == :rainbow_perfume

      humanize!

      self[:human_name] = %w[マオ ブルーキャット バケニャーン].sample

      print_by_line "レインボーパフュームいくニャン!"

      self
    end

    def rollback
      self[:human_name] = "ユニ"
      self
    end
  end
end

[Cure.cosmo, Cure.cure_cosmo].each do |cosmo|
  cosmo.singleton_class.prepend(Cure::CosmoExt)
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
rubicure-3.3.3 lib/rubicure/cure_cosmo.rb
rubicure-3.3.2 lib/rubicure/cure_cosmo.rb
rubicure-3.3.1 lib/rubicure/cure_cosmo.rb
rubicure-3.3.0 lib/rubicure/cure_cosmo.rb
rubicure-3.3.0.rc2 lib/rubicure/cure_cosmo.rb
rubicure-3.3.0.rc1 lib/rubicure/cure_cosmo.rb
rubicure-3.2.6 lib/rubicure/cure_cosmo.rb
rubicure-3.2.5 lib/rubicure/cure_cosmo.rb
rubicure-3.2.4 lib/rubicure/cure_cosmo.rb
rubicure-3.2.3 lib/rubicure/cure_cosmo.rb
rubicure-3.2.2 lib/rubicure/cure_cosmo.rb
rubicure-3.2.1 lib/rubicure/cure_cosmo.rb
rubicure-3.2.0 lib/rubicure/cure_cosmo.rb
rubicure-3.2.0.rc1 lib/rubicure/cure_cosmo.rb
rubicure-3.1.5 lib/rubicure/cure_cosmo.rb
rubicure-3.1.4 lib/rubicure/cure_cosmo.rb
rubicure-3.1.3 lib/rubicure/cure_cosmo.rb
rubicure-3.1.2 lib/rubicure/cure_cosmo.rb
rubicure-3.1.1 lib/rubicure/cure_cosmo.rb
rubicure-3.1.0 lib/rubicure/cure_cosmo.rb