Module: TestSpeechBalloon::SpeechBalloonModule

Defined in:
lib/test_speech_balloon.rb

Instance Method Summary collapse

Instance Method Details

#new_speech_balloon(params = {}) ⇒ Object



21
22
23
24
# File 'lib/test_speech_balloon.rb', line 21

def new_speech_balloon params = {} 
  @speech_balloon_extend = TestSpeechBalloon::SpeechBalloon.new params
  @speech_balloon_extend.supply_default
end

#parsed_settingsObject



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

def parsed_settings 
  @parsed_settings ||= self.speech_balloon_template.parsed_settings
end

#speech_balloon_extendObject



10
11
12
13
# File 'lib/test_speech_balloon.rb', line 10

def speech_balloon_extend
  self.new_speech_balloon unless @speech_balloon_extend
  @speech_balloon_extend
end

#speech_balloon_extend=(params) ⇒ Object



15
16
17
18
19
# File 'lib/test_speech_balloon.rb', line 15

def speech_balloon_extend= params
  # load attributes
  @speech_balloon_extend = TestSpeechBalloon::SpeechBalloon.new params
  # no supply default params
end

#supply_defaultObject



5
6
7
8
# File 'lib/test_speech_balloon.rb', line 5

def supply_default 
  super
  self.speech_balloon_template_module_name = self.speech_balloon_template.module_name 
end