Class: SiteSettingHandler::PseudoMatchData
- Inherits:
-
Hash
- Object
- Hash
- SiteSettingHandler::PseudoMatchData
- Defined in:
- lib/sitesettinghandler.rb
Overview
matchが返すmatch_dataのためのクラス
Instance Attribute Summary collapse
-
#post_match ⇒ Object
readonly
Returns the value of attribute post_match.
Instance Method Summary collapse
-
#initialize(post_match, hash) ⇒ PseudoMatchData
constructor
A new instance of PseudoMatchData.
- #names ⇒ Object
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_match ⇒ Object (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
#names ⇒ Object
112 113 114 |
# File 'lib/sitesettinghandler.rb', line 112 def names keys.map(&:to_s) end |