Class: SiteSettingHandler::PseudoMatchData

Inherits:
Hash
  • Object
show all
Defined in:
lib/sitesettinghandler.rb

Overview

matchが返すmatch_dataのためのクラス

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(post_match, hash) ⇒ PseudoMatchData

Returns a new instance of PseudoMatchData.



106
107
108
109
110
# File 'lib/sitesettinghandler.rb', line 106

def initialize(post_match, hash)
  super()
  @post_match = post_match
  replace(hash)
end

Instance Attribute Details

#post_matchObject (readonly)

Returns the value of attribute post_match.



104
105
106
# File 'lib/sitesettinghandler.rb', line 104

def post_match
  @post_match
end

Instance Method Details

#namesObject



112
113
114
# File 'lib/sitesettinghandler.rb', line 112

def names
  keys.map(&:to_s)
end