Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jira/mixins.rb
Instance Method Summary collapse
Instance Method Details
#from_json ⇒ Object
52 53 54 |
# File 'lib/jira/mixins.rb', line 52 def from_json JSON.parse(self) rescue {} end |
#periodize ⇒ Object
56 57 58 |
# File 'lib/jira/mixins.rb', line 56 def periodize self.strip[-1] == "." ? self : self + "." end |