Sha256: c74f88309f09a70081c3095a28340c8108af9d21612a5af78987103e6f441eaa
Contents?: true
Size: 465 Bytes
Versions: 3
Compression:
Stored size: 465 Bytes
Contents
module Pione module LiterateAction class Document def self.load(location) new(location.read) end def initialize(src) @action = Parser.parse(src) end # Return action names in the document. def action_names @action.keys end # Find target action fromt the name. def find(name) if action = @action[name] Handler.new(action) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.4.1 | lib/pione/literate-action/document.rb |
pione-0.4.0 | lib/pione/literate-action/document.rb |
pione-0.3.2 | lib/pione/literate-action/document.rb |