Class: Hippo::BootstrapParser
- Inherits:
-
Object
- Object
- Hippo::BootstrapParser
- Defined in:
- lib/hippo/bootstrap_parser.rb
Constant Summary collapse
- TYPES =
%w[placeholder password].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source) ⇒ BootstrapParser
constructor
A new instance of BootstrapParser.
- #parse ⇒ Object
Constructor Details
#initialize(source) ⇒ BootstrapParser
Returns a new instance of BootstrapParser.
15 16 17 |
# File 'lib/hippo/bootstrap_parser.rb', line 15 def initialize(source) @source = source || {} end |
Class Method Details
.parse(source) ⇒ Object
9 10 11 |
# File 'lib/hippo/bootstrap_parser.rb', line 9 def self.parse(source) new(source).parse end |
Instance Method Details
#parse ⇒ Object
19 20 21 |
# File 'lib/hippo/bootstrap_parser.rb', line 19 def parse parse_hash(@source) end |